/* The pet is the room, rather than a card inside the app. */
body:has(#app.is-pet) {
  overflow: hidden;
  background: #e6d7ec;
}
#app.ui-refresh.is-pet {
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
#app.ui-refresh.is-pet > .bottom {
  display: none !important;
}
#app.ui-refresh .pc-fullscreen {
  position: fixed;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: min(100%, 600px);
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #e5d5ed;
  isolation: isolate;
}
#app.ui-refresh .pc-fullscreen .pd-scene {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  height: 100%;
  width: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  z-index: -1;
}
#app.ui-refresh .pc-fullscreen .pd-backdrop {
  object-position: center center;
  z-index: -2;
}
#app.ui-refresh .pc-fullscreen .pd-scene-label,
#app.ui-refresh .pc-fullscreen .pd-moment {
  display: none;
}
#app.ui-refresh .pc-fullscreen .pd-character {
  width: min(80%, 350px);
  aspect-ratio: 1;
  bottom: 21%;
  left: 50%;
  z-index: 3;
}
#app.ui-refresh .pc-fullscreen .pd-hat {
  width: 36%;
  top: -3%;
  left: 32%;
}
#app.ui-refresh .pc-fullscreen .pd-sofa {
  width: 53%;
  height: 30%;
  left: -6%;
  bottom: 22%;
}
#app.ui-refresh .pc-fullscreen .pd-lamp {
  width: 28%;
  height: 40%;
  right: -4%;
  bottom: 26%;
}
#app.ui-refresh .pc-fullscreen .pd-room-food {
  width: 25%;
  left: 27%;
  bottom: 19%;
}
#app.ui-refresh .pc-fullscreen .pd-room-yarn {
  width: 25%;
  left: 11%;
  bottom: 22%;
}
#app.ui-refresh .pc-fullscreen .pd-scene.together .pd-character {
  left: 30%;
  width: 55%;
  bottom: 28%;
}
#app.ui-refresh .pc-fullscreen .pd-companion {
  width: 55%;
  left: 44%;
  bottom: 28%;
  aspect-ratio: 1;
}
#app.ui-refresh .pc-fullscreen .pd-baby {
  width: 27%;
  left: 38%;
  bottom: 23%;
}
#app.ui-refresh .pc-fullscreen .pd-companion > span,
#app.ui-refresh .pc-fullscreen .pd-baby > span {
  bottom: 8%;
  font-size: 10px;
}
#app.ui-refresh .pc-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(14px + env(safe-area-inset-top)) 16px 0;
  z-index: 5;
  background: linear-gradient(#fffaf1e8, #fffaf18c 75%, #fffaf100);
}
#app.ui-refresh .pc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}
#app.ui-refresh .pc-icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  background: #fffdf7e8;
  border: 1px solid #bdaacb;
  border-radius: 13px;
  color: #59406e;
  padding: 0;
}
#app.ui-refresh .pc-icon-button .pd-icon {
  width: 20px;
  height: 20px;
}
#app.ui-refresh .pc-pet-name {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  background: transparent;
  color: #30233f;
  padding: 4px 2px;
}
#app.ui-refresh .pc-pet-name strong {
  display: block;
  font-family: ClubDisplay, WeduelUI, sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#app.ui-refresh .pc-pet-name small {
  display: block;
  font-size: 9px;
  color: #796181;
  margin-top: 3px;
}
#app.ui-refresh .pc-wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 37px;
  max-width: 110px;
  padding: 7px 9px;
  border: 1px solid #c2b0ce;
  border-radius: 999px;
  background: #fffdf7ef;
  color: #59406e;
  font-size: 13px;
}
#app.ui-refresh .pc-wallet b {
  overflow-wrap: anywhere;
  min-width: 0;
}
#app.ui-refresh .pc-wallet .pd-icon {
  width: 20px;
  height: 20px;
  fill: #e6efbb;
  color: #75804b;
}
#app.ui-refresh .pc-hud .pd-meters {
  margin: 13px 0 10px;
  gap: 7px;
}
#app.ui-refresh .pc-hud .pd-meter {
  background: #fffdf7ed;
  border-radius: 13px;
  padding: 9px 8px;
  box-shadow: 0 2px 0 #6a4b7e0a;
}
#app.ui-refresh .pc-hud .pd-meter b {
  font-size: 13px;
}
#app.ui-refresh .pc-hud .pd-meter > small {
  font-size: 9px;
}
#app.ui-refresh .pc-room-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
#app.ui-refresh .pc-room-heading > button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  color: #65497e;
  padding: 0;
}
#app.ui-refresh .pc-room-heading > .pc-room-label {
  display: block;
  flex: 1;
  font-family: ClubDisplay, WeduelUI, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  width: auto;
  height: auto;
  line-height: 1.4;
}
#app.ui-refresh .pc-room-label small {
  display: block;
  font:
    500 9px/1.5 WeduelUI,
    sans-serif;
  letter-spacing: 0;
  color: #80688e;
  margin-top: 2px;
}
#app.ui-refresh .pc-thought {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 75%;
  width: max-content;
  z-index: 4;
  border: 1px solid #ccb7d5;
  background: #fffdf7ed;
  border-radius: 18px 18px 18px 5px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 750;
  color: #654878;
  text-align: center;
}
#app.ui-refresh .pc-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(#fffaf100, #fffaf1db 18%, #fffaf1f5 80%);
  z-index: 6;
}
#app.ui-refresh .pc-care-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
#app.ui-refresh .pc-care-buttons button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 82px;
  border: 1px solid #cdb7d8;
  border-radius: 17px;
  background: #fffdf7ed;
  color: #614579;
  padding: 10px 2px 8px;
}
#app.ui-refresh .pc-care-buttons button > .pd-icon {
  width: 27px;
  height: 27px;
}
#app.ui-refresh .pc-care-buttons button b {
  font-size: 10px;
  line-height: 1.3;
}
#app.ui-refresh .pc-care-buttons button small {
  font-size: 7px;
  color: #8c739b;
  line-height: 1.3;
}
#app.ui-refresh .pc-care-buttons button:disabled {
  color: #a493ae;
  background: #f0e8f0d9;
  border-color: #d8c9df;
  opacity: 1;
}
#app.ui-refresh .pc-more-care {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  color: #7b5b91;
  margin: 9px auto 0;
  min-height: 24px;
}
#app.ui-refresh .pc-more-care .pd-icon {
  width: 13px;
  height: 13px;
}
#app.ui-refresh .pc-panel-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: #30233f45;
  z-index: 30;
  backdrop-filter: none;
}
#app.ui-refresh .pd-panel.mode-sheet {
  width: 100%;
  max-width: 600px;
  max-height: min(78dvh, 760px);
  margin: 0;
  padding: 0;
  border-radius: 25px 25px 0 0;
  border: 1px solid #c9b4d4;
  border-bottom: 0;
  background: #f9f5ec;
  box-shadow: 0 -5px 25px #30233f17;
  overflow: auto;
  text-align: left;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
#app.ui-refresh .pc-panel-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 13px;
  background: #f9f5ec;
  z-index: 3;
  border-bottom: 1px solid #e1d4e2;
}
#app.ui-refresh .pc-panel-head h2 {
  font-size: 19px;
  margin: 0;
  line-height: 1.4;
}
#app.ui-refresh .pc-panel-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: #eae0f0;
  color: #7952a0;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  padding: 0;
}
#app.ui-refresh .pd-panel > .pd-content {
  padding: 0 18px 8px;
}
#app.ui-refresh .pd-panel .pd-section:first-child {
  margin-top: 19px;
}
#app.ui-refresh .pd-panel > .pd-room-tabs {
  margin: 13px 0 0;
  padding: 0 18px 8px;
}
#app.ui-refresh .pd-panel .pd-care-action > .pd-icon:first-child {
  width: 45px;
  height: 45px;
}
#app.ui-refresh .pc-menu {
  display: grid;
  gap: 7px;
  padding-top: 12px;
}
#app.ui-refresh .pc-menu > button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffdf7;
  border: 1px solid #d5c4db;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  color: #614777;
  min-height: 61px;
}
#app.ui-refresh .pc-menu > button > span {
  flex: 1;
}
#app.ui-refresh .pc-menu b {
  font-size: 13px;
}
#app.ui-refresh .pc-menu small {
  display: block;
  font-size: 10px;
  color: #897295;
  margin-top: 4px;
  line-height: 1.5;
}
#app.ui-refresh .pc-menu .pd-icon {
  width: 23px;
  height: 23px;
}
#app.ui-refresh .pc-menu button > .pd-icon:last-child {
  width: 16px;
  height: 16px;
}
#app.ui-refresh .pc-choices {
  display: grid;
  gap: 11px;
  margin: 20px 0;
}
#app.ui-refresh .pc-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: #fffdf7;
  border: 1px solid #d3bfdc;
  border-radius: 16px;
  padding: 12px;
  color: #614777;
}
#app.ui-refresh .pc-choice.selected {
  border: 2px solid #8c64b5;
  background: #ede5f6;
  padding: 11px;
}
#app.ui-refresh .pc-choice > img {
  width: 88px;
  height: 98px;
  object-fit: contain;
}
#app.ui-refresh .pc-choice > span {
  flex: 1;
  min-width: 0;
}
#app.ui-refresh .pc-choice b {
  font-size: 16px;
}
#app.ui-refresh .pc-choice small {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  color: #8b719a;
  margin-top: 6px;
}
#app.ui-refresh .pc-choice > i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #7952a0;
}
#app.ui-refresh .pc-room-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0;
}
#app.ui-refresh .pc-room-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border: 1px solid #d1bfdc;
  background: #fffdf7;
  color: #795492;
  border-radius: 13px;
  padding: 13px;
  font-size: 12px;
  font-weight: 750;
}
#app.ui-refresh .pc-room-list .on {
  background: #e8dcf0;
  border-color: #a88cbb;
}
#app.ui-refresh .pc-book {
  position: absolute;
  bottom: 11%;
  left: 32%;
  width: 38%;
  height: 31%;
  display: grid;
  place-items: center;
  background: #fff6de;
  border: 2px solid #795789;
  border-radius: 7px;
  transform: rotate(-5deg);
}
#app.ui-refresh .pc-book > .pd-icon {
  width: 73%;
  height: 73%;
  color: #9a7aaf;
}
#app.ui-refresh .pc-heart {
  position: absolute;
  left: 61%;
  top: 15%;
  color: #ad75c6;
}
#app.ui-refresh .pc-heart .pd-icon {
  fill: #d5b2e8;
  width: 44px;
  height: 44px;
}
#app.ui-refresh .pc-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#app.ui-refresh .pc-bubbles i {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d0b8e1;
  background: #fffdf7dd;
  left: 10%;
  top: 20%;
}
#app.ui-refresh .pc-bubbles i:nth-child(2) {
  left: 80%;
  top: 35%;
  width: 37px;
  height: 37px;
}
#app.ui-refresh .pc-bubbles i:nth-child(3) {
  left: 70%;
  top: 5%;
  width: 18px;
  height: 18px;
}
@media (max-height: 650px) {
  #app.ui-refresh .pc-hud {
    padding-top: calc(7px + env(safe-area-inset-top));
  }
  #app.ui-refresh .pc-header {
    min-height: 35px;
  }
  #app.ui-refresh .pc-pet-name strong {
    font-size: 16px;
  }
  #app.ui-refresh .pc-hud .pd-meters {
    margin: 8px 0 5px;
  }
  #app.ui-refresh .pc-hud .pd-meter {
    padding: 6px;
  }
  #app.ui-refresh .pc-meter > small {
    font-size: 8px;
  }
  #app.ui-refresh .pc-room-heading {
    margin-bottom: 0;
  }
  #app.ui-refresh .pc-fullscreen .pd-character {
    width: min(63%, 255px);
    bottom: 20%;
  }
  #app.ui-refresh .pc-thought {
    top: 34%;
    font-size: 10px;
    padding: 7px 10px;
  }
  #app.ui-refresh .pc-care-buttons button {
    min-height: 66px;
    gap: 3px;
    padding: 7px 2px;
  }
  #app.ui-refresh .pc-care-buttons button > .pd-icon {
    width: 23px;
    height: 23px;
  }
  #app.ui-refresh .pc-dock {
    padding-top: 10px;
  }
  #app.ui-refresh .pc-more-care {
    margin-top: 4px;
  }
  #app.ui-refresh .pd-panel.mode-sheet {
    max-height: 84dvh;
  }
}
@media (max-width: 350px) {
  #app.ui-refresh .pc-hud {
    padding-left: 12px;
    padding-right: 12px;
  }
  #app.ui-refresh .pc-header {
    gap: 5px;
  }
  #app.ui-refresh .pc-pet-name strong {
    font-size: 16px;
  }
  #app.ui-refresh .pc-icon-button {
    width: 33px;
    height: 35px;
  }
  #app.ui-refresh .pc-wallet {
    padding: 6px;
    max-width: 83px;
  }
  #app.ui-refresh .pc-care-buttons {
    gap: 4px;
  }
  #app.ui-refresh .pc-care-buttons button small {
    font-size: 6.5px;
  }
  #app.ui-refresh .pc-pet-name small {
    font-size: 8px;
  }
  #app.ui-refresh .pc-choice > img {
    width: 72px;
    height: 86px;
  }
}
