.wg-game {
  --wg-ink:#34594f;
  --wg-leaf:#497e6b;
  --wg-cream:#fff7e7;
  color: var(--wg-ink);
  max-width: 850px;
  margin: auto;
  font: inherit;
}
.wg-game * {
  box-sizing: border-box;
}
.wg-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background: #edf4e9;
  padding: 12px 16px;
  margin: 12px 0;
}
.wg-intro .wg-art {
  width: 58px;
  flex: none;
}
.wg-intro p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.wg-art {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wg-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wg-request {
  background: var(--wg-cream);
  border: 1px solid #dfd7bc;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.wg-english {
  font-size: clamp(18px, 3.2vw, 25px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
}
.wg-hint {
  font-size: 14px;
  line-height: 1.65;
  padding: 10px 0;
  margin: 0;
}
.wg-muted {
  font-size: 12px;
  line-height: 1.5;
  color: #64796f;
}
.wg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.wg-button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #b7c9b7;
  border-radius: 12px;
  background: #fffdf6;
  color: var(--wg-ink);
  font: 600 15px/1.4 inherit;
  padding: 10px 13px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 2px 0 #d4ddcb;
}
.wg-button:hover:not(:disabled) {
  background: #eaf3e7;
}
.wg-button.selected {
  background: #d9eadb;
  border-color: #4a816c;
  box-shadow: 0 0 0 2px #56866d55;
}
.wg-button:focus-visible {
  outline: 3px solid #257f78;
  outline-offset: 3px;
}
.wg-button:disabled {
  opacity: .52;
  cursor: default;
}
.wg-primary {
  background: #3e7e6e;
  color: #fff;
  border-color: #326a5b;
  min-width: 150px;
  display: block;
  margin: 10px auto;
}
.wg-primary:hover:not(:disabled) {
  background: #2e6c5d;
}
.wg-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wg-label {
  font-size: 13px;
  line-height: 1.35;
}
.wg-scene {
  position: relative;
  background: #e3eedf;
  border: 1px solid #bccdb8;
  border-radius: 20px;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
}
.wg-cozycafe .wg-scene {
  background:
    linear-gradient(
      #dceae1 0,
      #dceae1 65%,
      #beaa89 65%,
      #beaa89 71%,
      #d4bc95 71%);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px 18px;
}
.wg-person {
  width: 90px;
  min-width: 60px;
  align-self: center;
}
.wg-person svg {
  width: 100%;
}
.wg-window {
  position: absolute;
  right: 20px;
  top: 14px;
  display: grid;
  place-items: center;
  background: #f7e7b9;
  width: 64px;
  height: 57px;
  border: 5px solid #fff5de;
  border-radius: 20px 20px 0 0;
  font-size: 28px;
}
.wg-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff4d9;
  border: 2px solid #c9b394;
  border-radius: 18px;
  padding: 12px;
  min-height: 65px;
}
.wg-tray b {
  width: 100%;
  font-size: 14px;
}
.wg-tray-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  font-size: 12px;
}
.wg-tray-item .wg-art {
  width: 46px;
  height: 46px;
}
.wg-supplies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 9px;
  margin: 14px 0;
}
.wg-supply {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ded7c0;
  background: #fff9ee;
  padding: 8px;
  border-radius: 15px;
  min-width: 0;
}
.wg-supply b {
  font-size: 13px;
}
.wg-count {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
}
.wg-count .wg-button {
  padding: 5px;
  font-size: 21px;
  width: 44px;
}
.wg-count output {
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}
.wg-room-grid,
.wg-town-grid,
.wg-robot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  max-width: 600px;
  margin: auto;
}
.wg-room-cell {
  position: relative;
  min-height: 64px;
  min-width: 44px;
  padding: 0;
  background: #dfcaaa55;
  box-shadow: none;
  border-color: #c7b493;
  border-radius: 7px;
  overflow: hidden;
}
.wg-room-cell .wg-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 65px;
  margin: auto;
}
.wg-room-window {
  position: absolute;
  bottom: 1px;
  left: 2px;
  right: 2px;
  background: #b6d5d6;
  border: 4px solid #fff5de;
  text-align: center;
  font-size: 10px;
  line-height: 16px;
}
.wg-sofa {
  display: grid;
  place-items: center;
  border: 5px solid #6f968c;
  min-height: 42px;
  border-radius: 14px;
  background: #95b8aa;
  font-size: 11px;
}
.wg-room-cell .wg-placed-clock {
  inset: 0 25% auto;
  width: 50%;
  height: 45%;
  z-index: 2;
}
.wg-room-cell .wg-placed-book {
  top: 0;
  right: 25%;
  bottom: 0;
  left: 25%;
  width: 50%;
  z-index: 2;
}
.wg-map-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  min-width: 0;
  border-radius: 8px;
  background: #fff7df;
  border: 1px solid #c4ceae;
}
.wg-town-grid .wg-map-cell {
  background:
    linear-gradient(
      90deg,
      transparent 40%,
      #dbcaaa 40% 60%,
      transparent 60%),
    linear-gradient(
      transparent 40%,
      #dbcaaa 40% 60%,
      transparent 60%),
    #e4edcd;
}
.wg-building {
  font-size: clamp(9px, 1.8vw, 14px);
  background: #fff4d5;
  border: 1px solid #bfab82;
  border-radius: 6px;
  padding: 6px 3px;
  position: absolute;
  inset: 3px 2px auto;
  text-align: center;
  line-height: 1.2;
}
.wg-courier {
  font-size: 29px;
  color: #3c786a;
  position: absolute;
  bottom: -3px;
  text-shadow: 0 2px #fff;
  z-index: 1;
}
.wg-compass {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 330px;
  gap: 7px;
  margin: 16px auto;
}
.wg-compass [data-wgkey=move-north] {
  grid-column: 2;
}
.wg-compass [data-wgkey=move-west] {
  grid-row: 2;
  grid-column: 1;
}
.wg-compass [data-wgkey=move-east] {
  grid-row: 2;
  grid-column: 3;
}
.wg-compass [data-wgkey=move-south] {
  grid-row: 3;
  grid-column: 2;
}
.wg-pet-pen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px 0;
}
.wg-pet-pen .wg-card {
  background: #fff7e7;
  border-radius: 40% 40% 14px 14px;
  padding: 15px 3px;
}
.wg-care {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0;
}
.wg-needs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.wg-needs span {
  font-size: 12px;
  background: #f5f5df;
  border-radius: 9px;
  padding: 7px;
}
.wg-needs meter {
  display: block;
  width: 90px;
}
.wg-owner {
  font-size: 18px;
  line-height: 1.5;
  border-radius: 14px;
  background: #fff8df;
  padding: 12px;
  margin-bottom: 12px;
}
.wg-belongings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wg-mark {
  position: absolute;
  top: 30px;
  left: calc(50% - 6px);
  color: #fff7df;
  font-size: 18px;
  pointer-events: none;
}
.wg-notebook {
  background:
    repeating-linear-gradient(
      #fff9e8 0,
      #fff9e8 28px,
      #d9dfc8 28px,
      #d9dfc8 29px);
  border: 1px solid #dac9a4;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  line-height: 1.6;
}
.wg-notebook p {
  margin: 5px 0;
}
.wg-timetable {
  display: grid;
  gap: 6px;
}
.wg-timetable > b {
  padding: 0 7px 10px;
  font-size: 18px;
}
.wg-timetable .wg-button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: start;
  text-align: left;
}
.wg-timetable .wg-art {
  width: 39px;
  height: 35px;
}
.wg-ticket {
  background: #fff6dd;
  border: 2px dashed #baa780;
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  text-align: center;
}
.wg-ticket .wg-count span {
  min-width: 55px;
  text-align: left;
}
.wg-announcement {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px;
  background: #e3eedf;
  border-radius: 12px;
}
.wg-nature {
  height: 330px;
  min-height: 330px;
  background:
    linear-gradient(
      #c6e1df 0,
      #c6e1df 52%,
      #bfd5a5 52%);
  padding: 0;
  overflow: hidden;
}
.wg-tree {
  position: absolute;
  left: 6%;
  top: 7%;
  font-size: 160px;
  line-height: 1;
  color: #7caa6f;
}
.wg-pond {
  position: absolute;
  left: 52%;
  top: 53%;
  width: 40%;
  height: 33%;
  background: #8fbfc2;
  border: 6px solid #b1cd9f;
  border-radius: 50%;
}
.wg-flowers {
  position: absolute;
  left: 36%;
  top: 52%;
  font-size: 27px;
  color: #d7a487;
}
.wg-bench {
  position: absolute;
  left: 6%;
  top: 73%;
  height: 9%;
  width: 28%;
  background: #c6aa7f;
  border-radius: 7px;
}
.wg-wildlife {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 76px;
  max-width: 24%;
  padding: 2px 3px;
  background: #fff7e9b0;
  border-color: #a7bea060;
  box-shadow: none;
  border-radius: 13px;
  z-index: 2;
}
.wg-wildlife .wg-art {
  width: 46px;
  height: 46px;
}
.wg-wildlife .wg-label {
  font-size: 9px;
  line-height: 1.15;
}
.wg-wildlife.selected {
  outline: 3px solid #3e766d;
  background: #fff9e4dd;
}
.wg-moving .wg-art {
  animation: wg-float 3s ease-in-out infinite;
}
@keyframes wg-float {
  50% {
    transform: translateY(-4px);
  }
}
.wg-album {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.wg-album > b {
  width: 100%;
}
.wg-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff8e6;
  padding: 5px;
  border: 1px solid #d6ceb5;
  border-radius: 8px;
}
.wg-photo .wg-art {
  width: 42px;
  height: 42px;
}
.wg-photo small {
  font-size: 10px;
}
.wg-robot-grid .wg-art {
  width: 45px;
  height: 45px;
}
.wg-path {
  background: #cfdfce;
}
.wg-heading {
  position: absolute;
  right: 3px;
  top: 0;
  font-size: 19px;
  color: #4d766b;
}
.wg-program {
  list-style: none;
  padding: 10px 14px;
  margin: 10px 0;
  background: #eaf1e8;
  border: 1px solid #cad7c4;
  border-radius: 14px;
}
.wg-program li {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 6px 0;
}
.wg-program li > span {
  flex: 1;
  font-size: 15px;
}
.wg-program .wg-button {
  padding: 3px;
  width: 44px;
  flex: none;
}
.wg-camp {
  background:
    linear-gradient(
      #cbe3da 0,
      #cbe3da 55%,
      #b7cea0 55%);
  display: flex;
  align-items: end;
  gap: 18px;
  min-height: 210px;
}
.wg-camp > .wg-art {
  width: 130px;
  height: 130px;
  z-index: 1;
}
.wg-camp .wg-tray {
  z-index: 1;
  background: #fff8e7e0;
}
.wg-camp-sun {
  position: absolute;
  right: 12%;
  top: 4%;
  font-size: 52px;
  color: #efd18a;
}
.wg-camp-tree {
  position: absolute;
  right: -1%;
  top: 3%;
  font-size: 180px;
  color: #79a870;
}
.wg-chat {
  border: 1px solid #c3d2bf;
  border-radius: 14px;
  padding: 10px 13px;
  margin: 12px 0;
}
.wg-chat legend {
  font-size: 16px;
  font-weight: 700;
  max-width: 100%;
  line-height: 1.5;
}
.wg-chat .wg-button {
  width: 100%;
  display: block;
  text-align: left;
  margin: 6px 0;
}
.wg-result {
  min-height: 44px;
  font-size: 15px;
  line-height: 1.6;
  background: #f0f3e6;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0;
}
.wg-result.good {
  background: #e2f0de;
  color: #336b4e;
}
.wg-result.error {
  background: #fff0df;
  color: #8a523e;
}
.wg-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 17px 0;
}
.wg-progress > b {
  width: 100%;
  text-align: center;
  font-size: 14px;
}
.wg-progress .wg-button {
  padding: 8px;
  min-width: 44px;
}
.wg-rewards {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.wg-rewards > span {
  width: 100%;
  font-size: 13px;
}
.wg-rewards > .wg-card {
  flex: 1;
  padding: 7px 5px;
  min-width: 0;
}
.wg-rewards .wg-art {
  width: 40px;
  height: 40px;
}
.wg-rewards .wg-label {
  font-size: 11px;
}
.wg-decoration {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 47px !important;
  height: 47px !important;
  z-index: 4;
  pointer-events: none;
}
.wg-foot {
  font-size: 11px;
  color: #6d7c6f;
  text-align: center;
  line-height: 1.6;
}
.wg-game[data-decoration="2"] .wg-scene {
  box-shadow: inset 0 0 30px #ffecb780;
}
.wg-game[data-decoration="3"] .wg-scene {
  border-bottom: 6px solid #c6a99a;
}
@media (max-width: 430px) {
  .wg-intro {
    padding: 10px;
    gap: 9px;
  }
  .wg-intro .wg-art {
    width: 42px;
    height: 42px;
  }
  .wg-intro p {
    font-size: 12px;
  }
  .wg-request {
    padding: 12px;
  }
  .wg-scene {
    padding: 9px;
  }
  .wg-cozycafe .wg-scene {
    padding: 15px 10px;
    gap: 7px;
  }
  .wg-person {
    width: 65px;
  }
  .wg-window {
    width: 48px;
    height: 42px;
    right: 12px;
    top: 7px;
  }
  .wg-supplies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .wg-supply {
    padding: 6px 2px;
  }
  .wg-supply .wg-art {
    width: 44px;
    height: 44px;
  }
  .wg-count {
    gap: 3px;
  }
  .wg-count output {
    min-width: 15px;
  }
  .wg-count .wg-button {
    width: 44px;
    min-width: 44px;
  }
  .wg-button {
    font-size: 13px;
    padding: 8px 9px;
  }
  .wg-supply .wg-count .wg-button {
    min-width: 34px;
    width: 34px;
    min-height: 44px;
  }
  .wg-care {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wg-belongings {
    gap: 5px;
  }
  .wg-belongings .wg-card {
    padding: 7px 3px;
  }
  .wg-pet-pen {
    gap: 5px;
  }
  .wg-pet-pen .wg-art {
    width: 52px;
    height: 52px;
  }
  .wg-map-cell {
    min-height: 49px;
  }
  .wg-room-cell {
    min-height: 54px;
  }
  .wg-nature {
    height: 290px;
    padding: 0;
  }
  .wg-wildlife {
    min-width: 44px;
    padding: 2px;
  }
  .wg-camp > .wg-art {
    width: 80px;
    height: 90px;
  }
  .wg-tray {
    padding: 8px;
    gap: 7px;
  }
  .wg-tray-item .wg-art {
    width: 36px;
    height: 36px;
  }
  .wg-camp .wg-tray {
    font-size: 12px;
  }
  .wg-count .wg-button {
    font-size: 21px;
  }
  .wg-timetable .wg-button {
    padding: 8px 6px;
    font-size: 12px;
  }
}
.wg-button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 430px) {
  .wg-supplies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wg-supply .wg-count .wg-button {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wg-moving .wg-art {
    animation: none;
  }
}
.wg-room-cell {
  background:
    repeating-linear-gradient(
      0deg,
      #dfcbaa 0,
      #dfcbaa 17px,
      #d5bf9b 17px,
      #d5bf9b 18px);
}
.wg-room-cell[data-y="0"] {
  background: #e9d9bb;
}
.wg-sofa {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.wg-sofa .wg-art {
  position: static;
  width: 80%;
  height: 70%;
}
.wg-sofa small {
  font-size: 9px;
  position: absolute;
  bottom: 1px;
}
.wg-building {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  line-height: 1;
}
.wg-building svg {
  width: 34px;
  height: 25px;
}
.wg-building span {
  font-size: 10px;
  background: #fff7dfc9;
  border-radius: 3px;
  padding: 1px 2px;
}
.wg-tree {
  width: 32%;
  height: 70%;
  font-size: initial;
  left: 4%;
  top: 14%;
}
.wg-tree svg {
  width: 100%;
  height: 100%;
}
.wg-wildlife .wg-label {
  font-size: 11px;
  line-height: 1.2;
}
.wg-nature {
  min-height: 350px;
  height: 350px;
}
.wg-focus {
  font-size: 14px;
  line-height: 1.5;
  padding: 10px;
  background: #e9f2e4;
  border-radius: 10px;
}
@media (max-width: 430px) {
  .wg-wildlife {
    width: 68px;
  }
  .wg-wildlife .wg-art {
    width: 42px;
    height: 42px;
  }
  .wg-nature {
    height: 330px;
    min-height: 330px;
  }
  .wg-building svg {
    width: 29px;
    height: 21px;
  }
  .wg-building span {
    font-size: 9px;
  }
}
