/* web/study-pets.css */
.study-pets-widget {
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  margin-bottom: .5rem;
}
.study-pets-open,
.study-pets-bowl {
  color: #45214e;
  background: #fff4cb;
  border: 2px solid #df9c4c;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.study-pets-open strong {
  margin-left: 6px;
}
.study-pets-meter {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 5px;
}
.study-pets-meter i {
  width: 10px;
  height: 7px;
  border-radius: 4px;
  background: #ebdcb6;
}
.study-pets-meter .filled {
  background: #a65728;
}
.study-pets-dialog {
  box-sizing: border-box;
  width: min(92vw, 530px);
  max-height: 90dvh;
  overflow: auto;
  padding: 18px;
  color: #352346;
  background: #fffbf5;
  border: 2px solid #d9b4fa;
  border-radius: 22px;
  box-shadow: 0 14px 44px #39204a55;
}
.study-pets-dialog::backdrop {
  background: #201630a8;
}
.study-pets-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.study-pets-dialog h2 {
  margin: 0;
  font-size: 1.25rem;
}
.study-pets-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #efe2fd;
  color: #352346;
  font-size: 1.5rem;
  cursor: pointer;
}
.study-pets-bowl {
  width: 100%;
  min-height: 44px;
  touch-action: none;
}
.study-pets-bowl:enabled {
  cursor: grab;
}
.study-pets-bowl:active {
  cursor: grabbing;
}
.study-pets-animals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.study-pets-animals [data-pet] {
  display: grid;
  width: 100%;
  justify-items: center;
  align-content: center;
  min-height: 92px;
  padding: 4px;
  border: 2px solid #80619f;
  border-radius: 14px;
  color: #352346;
  background: #f4dcff;
  cursor: pointer;
}
.study-pets-animals [data-pet=dog] {
  background: #cbefff;
}
.study-pets-animals [data-pet=rabbit] {
  background: #dbf8ca;
}
.study-pets-animals [data-pet=panda] {
  background: #ffe5cc;
}
.study-pets-animals [data-pet=bird] {
  background: #ffdcea;
}
.study-pets-animals [data-pet]:disabled {
  cursor: default;
  opacity: .76;
}
.study-pets-animals [data-pet] span {
  font-size: 2rem;
  line-height: 1.3;
}
.study-pet-health {
  font-size: .78rem;
  margin: 5px 0 0;
}
.study-pets-help {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d9b4fa;
  border-radius: 12px;
}
.study-pets-help summary {
  cursor: pointer;
  font-weight: 700;
}
.study-pets-help form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}
.study-pets-help input {
  display: block;
  max-width: 100%;
}
.study-pets-help button,
.study-pet-health button {
  min-height: 40px;
}
.study-pets-ghost {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
}
.study-pets-message {
  min-height: 1.5em;
  margin-bottom: 6px;
}
