:root {
  --ui-quiet:#70566c;
}
.phone {
  font-size: 14px;
  line-height: 1.5;
}
.modal h2,
.modal .modal-head h2,
.welcome h1,
.desk-note strong,
.decor-dialog-card h3,
.decor-preview-card h3,
.chapter-briefing-card h3,
.chapter-pause-card h3,
#development h2 {
  letter-spacing: .02em;
  line-height: 1.3;
}
.modal .modal-head h2 {
  font-size: 27px;
}
.desk-note strong {
  font-size: 34px;
  line-height: 1.45;
}
.modal-head > div {
  min-width: 0;
}
.modal-head small,
.modal .modal-intro {
  color: var(--ui-quiet);
}
.modal .modal-intro {
  font-size: 14px;
  line-height: 1.7;
}
.phone button {
  line-height: 1.4;
}
.hud-shop {
  font-size: 15px;
  letter-spacing: 0;
}
.hud-identity {
  padding-right: 12px;
}
.hud-currencies {
  --xhs-width:94px;
  width: 94px;
}
.hud-currency b {
  font-size: 13px;
  letter-spacing: 0;
}
.hud-level {
  font-size: 10px;
}
.hud-currency b,
.decor-prices,
.chapter-energy-count,
.signin-reward-card > strong,
.login-month b {
  font-variant-numeric: tabular-nums;
}
.illustrated-entry b {
  font-size: 18px;
  line-height: 1.2;
  padding: 3px 10px;
}
.login-entries .illustrated-entry b,
.dashboard .cashbox-button b {
  font-size: 13px;
  line-height: 1.2;
  padding: 2px 5px;
}
.login-entries .illustrated-entry {
  --xhs-height:86px;
  height: 86px;
}
.login-entries .illustrated-entry small {
  font-size: 10px;
}
.scene-toast {
  font-size: 14px;
  line-height: 1.6;
  max-width: calc(100% - 32px);
}
#upgradeModal .modal-head {
  margin-bottom: 10px;
}
#upgradeModal .decor-tabs {
  --xhs-row-gap:10px;
  --xhs-column-gap:10px;
  grid-gap: 10px;
  gap: 10px;
}
#upgradeModal .decor-tabs > button {
  min-height: 44px;
  font-size: 16px;
}
#upgradeModal .decor-wallet {
  margin: 10px 0 12px;
  padding: 0;
}
#upgradeModal .decor-wallet .decor-prices {
  font-size: 14px;
  --xhs-row-gap:16px;
  --xhs-column-gap:16px;
  grid-gap: 16px;
  gap: 16px;
}
#upgradeModal #decorCategories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  --xhs-row-gap:7px;
  --xhs-column-gap:7px;
  grid-gap: 7px;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
}
#upgradeModal #decorCategories > button {
  min-width: 0;
  min-height: 76px;
  justify-content: flex-start;
  --xhs-row-gap:4px;
  --xhs-column-gap:4px;
  grid-gap: 4px;
  gap: 4px;
  padding: 6px 3px;
  font-size: 12px;
  line-height: 1.4;
}
#upgradeModal #decorCategories > button > img {
  flex: none;
}
#upgradeModal .decor-mine-categories > button {
  min-height: 44px;
  font-size: 14px;
}
#upgradeModal .decor-scroll {
  padding: 6px 3px 18px;
  scroll-padding-top: 12px;
  scroll-padding-bottom: 12px;
  scroll-padding-block: 12px;
}
#upgradeModal .decor-grid {
  --xhs-row-gap:14px;
  --xhs-column-gap:10px;
  grid-gap: 14px 10px;
  gap: 14px 10px;
  align-items: stretch;
}
#upgradeModal .decor-item {
  padding: 12px 10px 14px;
}
#upgradeModal .decor-item > b {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
}
#upgradeModal .decor-prices {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
}
#upgradeModal .decor-stock {
  min-height: 36px;
  margin: 8px 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ui-quiet);
}
#upgradeModal .decor-item-actions {
  flex-direction: column;
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
}
#upgradeModal .decor-item-actions > button {
  flex: auto;
  min-height: 44px;
  padding: 7px 8px;
  font-size: 14px;
}
#upgradeModal .decor-item-actions > button[data-action=preview],
#upgradeModal .outfit-actions > button[data-outfit-action=try] {
  border: 1px solid #c4a9be;
  background: #fff9f0;
  box-shadow: 0 2px 0 #d9c4d2;
  color: #715270;
}
#upgradeModal .decor-item-actions > button[data-action=preview]:before,
#upgradeModal .outfit-actions > button[data-outfit-action=try]:before {
  display: none;
}
#upgradeModal .decor-section-title {
  font-size: 15px;
  margin: 16px 4px 10px;
}
#upgradeModal .decor-store-help {
  margin: 0 0 4px;
}
#upgradeModal .decor-store-help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 12px;
}
.decor-dialog-card h3,
.decor-preview-card h3 {
  font-size: 25px;
}
.decor-dialog-card p,
.decor-preview-card p {
  line-height: 1.7;
}
#signinModal .signin-streak-heading > b {
  font-size: 14px;
}
#signinModal .signin-cycle-hint {
  font-size: 12px;
  line-height: 1.6;
}
#signinModal .login-month {
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 8px;
}
#signinModal .login-month b {
  font-size: 16px;
}
#signinModal .login-month button {
  min-width: 44px;
  min-height: 44px;
  font-size: 12px;
}
#signinModal .signin-reward-card > b {
  font-size: 12px;
}
#signinModal .signin-reward-card > strong {
  font-size: 20px;
  line-height: 1.2;
}
#signinModal .signin-reward-card.is-today {
  border: 2px solid #b28349;
  background: #fff0c9;
}
#signinModal .signin-card-ribbon {
  font-size: 11px;
  line-height: 1.4;
}
#signinModal .signin-reward-card:enabled .signin-card-ribbon {
  padding: 2px 10px;
}
#signinModal .signin-reward-card.is-claimed .signin-card-ribbon {
  color: #47603a;
}
#sevenDayModal .login-seven-card strong {
  font-size: 20px;
}
#sevenDayModal .login-seven-card small {
  font-size: 12px;
  line-height: 1.5;
}
#unlockModal .research-top h2 {
  font-size: 26px;
}
#unlockModal .merge-caption {
  font-size: 14px;
  align-items: center;
}
#unlockModal .merge-caption > span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ui-quiet);
}
#unlockModal .material-unlock small {
  font-size: 12px;
}
#unlockModal .material-requirement {
  font-size: 10px;
  color: var(--ui-quiet);
}
#unlockModal .ingredient-shelf {
  min-width: 0;
  max-width: 100%;
}
#chapterModal:not(.is-playing) .modal-head h2 {
  font-size: 26px;
}
#chapterModal.is-playing .modal-head h2 {
  font-size: 20px;
}
#chapterModal .chapter-goal {
  font-size: 13px;
  line-height: 1.5;
}
#chapterBriefing .game-action {
  min-height: 44px;
}
#cashboxModal .cashbox-row {
  align-items: center;
  padding: 14px 12px;
  --xhs-row-gap:12px;
  --xhs-column-gap:12px;
  grid-gap: 12px;
  gap: 12px;
}
#cashboxModal .cashbox-row b {
  font-size: 14px;
}
#cashboxModal .cashbox-row button {
  flex: none;
  min-height: 44px;
}
.phone button:focus,
.phone summary:focus,
.phone select:focus {
  outline: 3px solid #604165;
  outline-offset: 3px;
}
.phone :is(button, summary, select):focus-visible {
  outline: 3px solid #604165;
  outline-offset: 3px;
}
@media (max-width: 360px) {
  .hud-shop {
    font-size: 14px;
  }
  .hud-currencies {
    --xhs-width:86px;
    width: 86px;
  }
  .hud-currency b {
    font-size: 12px;
  }
  .modal .modal-head h2 {
    font-size: 25px;
  }
  .login-entries .illustrated-entry {
    --xhs-height:80px;
    height: 80px;
  }
  .login-entries .illustrated-entry b {
    font-size: 12px;
  }
  #upgradeModal .decor-item {
    padding: 10px 8px 12px;
  }
  #upgradeModal #decorCategories {
    display: flex;
  }
  #upgradeModal #decorCategories > button {
    flex: 0 0 70px;
    min-height: 70px;
  }
  #upgradeModal .decor-item > b {
    font-size: 13px;
  }
  #upgradeModal .decor-prices {
    font-size: 14px;
  }
  #upgradeModal .decor-item-actions > button {
    font-size: 13px;
  }
  #signinModal .signin-reward-card > b {
    font-size: 11px;
  }
  #signinModal .signin-reward-card > strong {
    font-size: 18px;
  }
  #unlockModal .merge-caption {
    font-size: 13px;
  }
  #cashboxModal .cashbox-row {
    flex-wrap: wrap;
  }
  #cashboxModal .cashbox-row button {
    margin-left: auto;
  }
}
@media (max-height: 650px) {
  #signinModal .login-month {
    margin-bottom: 4px;
  }
  #signinModal .signin-reward-card > strong {
    font-size: 17px;
  }
  #signinModal .signin-card-ribbon {
    font-size: 10px;
  }
  #signinModal .signin-reward-card:enabled .signin-card-ribbon {
    padding: 1px 8px;
  }
  #upgradeModal #decorCategories > button {
    min-height: 62px;
  }
  #upgradeModal .decor-thumb {
    --xhs-height:76px;
    height: 76px;
  }
  #upgradeModal .decor-item > b {
    min-height: 36px;
  }
  #upgradeModal .decor-item-actions:not(.outfit-actions) {
    flex-direction: row;
  }
}
.visual-currency {
  --xhs-width:22px;
  width: 22px;
  --xhs-height:22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
.research-guide:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
  --xhs-row-gap:7px;
  --xhs-column-gap:7px;
  grid-gap: 7px;
  gap: 7px;
  min-height: 52px;
}
.research-guide img {
  --xhs-width:40px;
  width: 40px;
  --xhs-height:40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
}
.cashbox-hero {
  display: block;
  --xhs-width:104px;
  width: 104px;
  --xhs-height:92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto;
}
.cashbox-row > b {
  display: grid;
  --xhs-row-gap:6px;
  --xhs-column-gap:6px;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.cashbox-amount {
  display: flex;
  align-items: center;
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
  font-size: 23px;
}
.cashbox-amount img {
  --xhs-width:34px;
  width: 34px;
  --xhs-height:34px;
  height: 34px;
  object-fit: contain;
}
.cashbox-row progress {
  --xhs-width:100%;
  width: 100%;
  --xhs-height:10px;
  height: 10px;
  accent-color: #9b7645;
}
.cashbox-row small {
  font-size: 12px;
}
.cashbox-row button {
  min-height: 44px;
}
.visual-rules {
  font-size: 14px;
  line-height: 1.5;
  flex: none;
  color: #62485c;
}
.visual-rules summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  align-content: center;
}
.visual-rules p {
  margin: 4px 0 10px;
}
.delivery-ticket .receipt-recipe {
  display: flex;
  align-items: center;
  --xhs-row-gap:4px;
  --xhs-column-gap:4px;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
}
.receipt-recipe > img {
  --xhs-width:32px;
  width: 32px;
  --xhs-height:36px;
  height: 36px;
  object-fit: contain;
  flex: none;
  pointer-events: none;
}
.delivery-ticket .receipt-recipe > span {
  font-size: 11px;
  line-height: 1.25;
}
.visual-reward-amounts {
  display: flex;
  align-items: center;
  --xhs-row-gap:5px;
  --xhs-column-gap:5px;
  grid-gap: 5px;
  gap: 5px;
  font-size: 14px;
}
.visual-reward-amounts img {
  --xhs-width:24px;
  width: 24px;
  --xhs-height:24px;
  height: 24px;
  object-fit: contain;
}
.delivery-reward-node {
  min-height: 44px;
  font-size: 13px;
}
.delivery-modal.xhs-has-2 {
  overflow-y: auto;
}
.delivery-modal:has(.visual-rules[open]) {
  overflow-y: auto;
}
.delivery-modal .delivery-rules {
  font-size: 12px;
}
.chapter-combo:empty {
  visibility: hidden;
}
@media (max-height: 650px) {
  .receipt-recipe > img {
    --xhs-width:25px;
    width: 25px;
    --xhs-height:28px;
    height: 28px;
  }
  .cashbox-hero {
    --xhs-height:64px;
    height: 64px;
  }
}
.delivery-ticket .receipt-parts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  --xhs-row-gap:2px;
  --xhs-column-gap:2px;
  grid-gap: 2px;
  gap: 2px;
}
.receipt-parts b {
  font-size: 11px;
  white-space: nowrap;
}
.receipt-parts img {
  --xhs-width:19px;
  width: 19px;
  --xhs-height:22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}
.cashbox-row {
  --xhs-row-gap:10px;
  --xhs-column-gap:10px;
  grid-gap: 10px;
  gap: 10px;
}
.cashbox-row > b {
  flex: 1 1 55%;
}
.cashbox-row button {
  max-width: 43%;
  padding-left: 8px;
  padding-right: 8px;
  padding-inline: 8px;
}
.cashbox-row small {
  font-size: 11px;
  white-space: nowrap;
}
.research-bottom.xhs-has-0 {
  overflow-y: auto;
  min-height: 0;
}
.research-bottom:has(.research-guide:not(.hidden)) {
  overflow-y: auto;
  min-height: 0;
}
.research-guide:not(.hidden) {
  flex-shrink: 0;
}
#cashboxModal .cashbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
}
#cashboxModal .cashbox-row button {
  max-width: none;
  --xhs-width:100%;
  width: 100%;
  margin: 0;
  font-size: 12px;
}
#unlockModal .research-bottom.xhs-has-0 .merge-board {
  --xhs-width:var(--xhs-local-35);
  width: var(--xhs-local-35);
  width: min(100%, 280px, calc(65dvh - 225px));
}
#unlockModal .research-bottom:has(.research-guide:not(.hidden)) .merge-board {
  --xhs-width:var(--xhs-local-35);
  width: var(--xhs-local-35);
  width: min(100%, 280px, calc(65dvh - 225px));
}
@media (max-height: 700px) {
  #unlockModal .research-top {
    flex: 0 0 202px;
    min-height: 202px;
  }
  #unlockModal .research-stats {
    padding-left: 110px;
    padding-right: 18px;
    flex-direction: row;
    --xhs-row-gap:4px;
    --xhs-column-gap:4px;
    grid-gap: 4px;
    gap: 4px;
  }
  #unlockModal .research-stage-status > b {
    min-height: 32px;
    padding: 4px;
    font-size: 10px;
  }
  #unlockModal .research-stats #recipeBook {
    min-height: 44px;
    font-size: 10px;
    padding: 4px;
  }
  #unlockModal .research-xp {
    margin: 2px 18px 0 110px;
  }
  #unlockModal .research-panda {
    left: 58px;
    bottom: 30px;
    --xhs-height:105px;
    height: 105px;
    min-width: 64px;
  }
  #unlockModal .supply-label {
    left: 108px;
    right: 14px;
    bottom: 9px;
    --xhs-width:auto;
    width: auto;
    font-size: 11px;
  }
  #unlockModal .research-bottom.xhs-has-0 .merge-board {
    --xhs-width:var(--xhs-local-36);
    width: var(--xhs-local-36);
    width: min(100%, 260px, max(212px, calc(100dvh - 397px)));
  }
  #unlockModal .research-bottom:has(.research-guide:not(.hidden)) .merge-board {
    --xhs-width:var(--xhs-local-36);
    width: var(--xhs-local-36);
    width: min(100%, 260px, max(212px, calc(100dvh - 397px)));
  }
  #unlockModal .research-bottom {
    --xhs-row-gap:3px;
    --xhs-column-gap:3px;
    grid-gap: 3px;
    gap: 3px;
  }
}
@media (max-height: 650px) {
  .delivery-ticket .receipt-recipe > img {
    --xhs-width:19px;
    width: 19px;
    --xhs-height:21px;
    height: 21px;
  }
  .delivery-ticket .receipt-parts img {
    --xhs-width:15px;
    width: 15px;
    --xhs-height:17px;
    height: 17px;
  }
  .delivery-ticket .receipt-parts {
    --xhs-row-gap:1px;
    --xhs-column-gap:1px;
    grid-gap: 1px;
    gap: 1px;
  }
  .delivery-ticket .receipt-parts b {
    font-size: 10px;
  }
}
#chapterStarRewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  --xhs-row-gap:6px;
  --xhs-column-gap:6px;
  grid-gap: 6px;
  gap: 6px;
}
#chapterStarRewards:empty {
  display: none;
}
#chapterStarRewards .star-threshold {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --xhs-row-gap:6px;
  --xhs-column-gap:6px;
  grid-gap: 6px;
  gap: 6px;
  padding: 8px 0;
  min-width: 0;
  background: #fff8e9;
  border: 1px solid #d9bc85;
  border-radius: 12px;
}
#chapterStarRewards .threshold-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  --xhs-row-gap:1px;
  --xhs-column-gap:1px;
  grid-gap: 1px;
  gap: 1px;
  --xhs-height:24px;
  height: 24px;
}
#chapterStarRewards .threshold-stars img {
  display: block;
  --xhs-width:21px;
  width: 21px;
  --xhs-height:23px;
  height: 23px;
  object-fit: contain;
}
#chapterStarRewards .star-threshold b {
  font-size: 16px;
  line-height: 1.2;
}
#drawRules .draw-material {
  display: flex;
  align-items: center;
  --xhs-row-gap:6px;
  --xhs-column-gap:6px;
  grid-gap: 6px;
  gap: 6px;
}
#drawRules .draw-material img {
  --xhs-width:32px;
  width: 32px;
  --xhs-height:32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}
#drawRules th,
#drawRules td {
  vertical-align: middle;
}
#levelNotice > div {
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
}
#levelNotice .level-unlock-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --xhs-row-gap:10px;
  --xhs-column-gap:10px;
  grid-gap: 10px;
  gap: 10px;
  padding: 8px 0;
}
#levelNotice .level-unlock-gallery:empty {
  display: none;
}
#levelNotice .level-unlock-gallery figure {
  margin: 0;
  min-width: 84px;
  padding: 8px;
  background: #fff7e7;
  border-radius: 14px;
}
#levelNotice .level-unlock-gallery img {
  --xhs-width:64px;
  width: 64px;
  --xhs-height:64px;
  height: 64px;
  object-fit: contain;
}
#levelNotice .level-unlock-gallery figcaption {
  font-size: 15px;
  line-height: 1.4;
}
#levelNotice .level-unlock-gallery small {
  display: block;
  font-size: 12px;
  color: #70566c;
}
#levelNoticeDetail {
  font-size: 13px;
  line-height: 1.5;
}
#decorPreviewTitle {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}
#decorPurchaseNote {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.5;
}
#decorPreviewNote {
  font-size: 13px;
  margin: 4px 0 10px;
}
#chapterResultText {
  font-size: 13px;
  line-height: 1.4;
}
#chapterResultRewardNote {
  font-size: 11px;
  line-height: 1.4;
}
.delivery-ticket .boss-recipe-text {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.is-delivery .chapter-order-item.boss-text-order {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  --xhs-height:auto;
  height: auto;
  white-space: normal;
}
.is-delivery .chapter-order-item.boss-text-order b {
  display: block;
  position: static;
  white-space: normal;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  max-width: 100%;
}
@media (max-height: 650px) {
  .delivery-ticket .boss-recipe-text,
  .is-delivery .chapter-order-item.boss-text-order b {
    font-size: 11px;
    line-height: 1.2;
  }
}
