@font-face {
  font-family: Display;
  src: url("/assets/fonts/display.ttf");
}
@font-face {
  font-family: Body;
  src: url("/assets/fonts/body.ttf");
}
@font-face {
  font-family: Body;
  src: url("/assets/fonts/body-bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: Pixel;
  src: url("/assets/fonts/pixel.ttf");
}
@font-face {
  font-family: Body;
  src: url("/assets/fonts/rubik.ttf");
  font-weight: 300 900;
  unicode-range: U+0400-04FF;
}
@font-face {
  font-family: Display;
  src: url("/assets/fonts/rubik.ttf");
  font-variation-settings: "wght" 800;
  unicode-range: U+0400-04FF;
}
@font-face {
  font-family: Pixel;
  src: url("/assets/fonts/pixel-ru.ttf");
  unicode-range: U+0400-04FF;
}
:root {
  --ink: #312d40;
  --paper: #fbf7ed;
  --line: #d8d0c0;
  --dim: #686170;
  --safe-top: max(
    env(safe-area-inset-top, 0px),
    var(--tg-content-safe-area-inset-top, 0px)
  );
  --safe-bottom: max(
    env(safe-area-inset-bottom, 0px),
    var(--tg-content-safe-area-inset-bottom, 0px)
  );
  font:
    16px Body,
    Arial,
    sans-serif;
  color: var(--ink);
  background: #282438;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  justify-items: center;
  background-image:
    radial-gradient(ellipse at 50% 32%, #82739633, transparent 64%),
    radial-gradient(#9282aa55 0.8px, transparent 1px);
  background-size:
    auto,
    8px 8px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
canvas:focus-visible,
input:focus-visible {
  outline: 3px solid #4384d8;
  outline-offset: 2px;
}
img {
  vertical-align: middle;
}
img[src$=".png"] {
  image-rendering: pixelated;
}
i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
i svg,
button > svg {
  display: block;
  width: 20px;
  height: 20px;
}
h1,
h2,
p {
  margin: 0;
}
h2,
strong {
  font-family: Display, Body, sans-serif;
}
h2 {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.pixel {
  font-family: Pixel, monospace;
}
.pocket {
  width: min(100%, 500px);
  min-height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}
.top {
  flex: none;
  background: #302c47;
  color: #fff5df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: calc(4px + var(--safe-top)) 14px 4px 17px;
  border-bottom: 2px solid #242139;
}
.brand {
  font:
    13px Pixel,
    monospace;
  letter-spacing: -1.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand img {
  width: 35px;
  margin-right: 3px;
}
.brand em {
  font-style: normal;
  color: #ffb298;
}
.utilities {
  display: flex;
  align-items: center;
  gap: 2px;
}
.square,
.wallet {
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
}
.square:active,
.wallet:active {
  background: #ffffff20;
}
.wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  padding: 0 12px;
  font: 14px Pixel;
  color: #ffe3a0;
  margin-right: 2px;
}
.wallet:before {
  content: "";
  position: absolute;
  inset: 7px 0;
  background: #211e32;
  border: 1px solid #766380;
  border-radius: 20px;
  z-index: -1;
}
.wallet {
  isolation: isolate;
}
.wallet img {
  width: 15px;
}
.wallet b {
  font-weight: 400;
}
main {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.stage {
  flex: 1;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  background: #514a78;
  isolation: isolate;
}
.stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  cursor: pointer;
}
.scene-title {
  position: absolute;
  top: clamp(17px, 3.3dvh, 33px);
  left: 0;
  right: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  pointer-events: none;
  color: #fff9ed;
}
.day-tag {
  min-height: 44px;
  position: relative;
  border: 0;
  background: none;
  font: 10px Pixel;
  color: #f6e2a4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  pointer-events: auto;
  isolation: isolate;
}
.day-tag:before {
  content: "";
  position: absolute;
  inset: 10px 0;
  background: #3d3558;
  border: 1px solid #a390ae;
  border-radius: 3px;
  z-index: -1;
}
.day-tag i svg {
  width: 12px;
  height: 12px;
}
.day-tag b {
  font-weight: 400;
}
.scene-title h1 {
  font:
    clamp(21px, 6.4vw, 29px)/1 Pixel,
    monospace;
  letter-spacing: -2.6px;
  color: #fff3d4;
  text-shadow:
    0 3px #453758,
    2px 3px #453758,
    -1px -1px #584b68;
  margin: 0 0 8px;
}
.location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px #302c4d;
}
.location svg {
  width: 13px;
  height: 13px;
}
#hint {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  background: #3d3657ed;
  border: 1px solid #71677f;
  color: #fff8e9;
  box-shadow: 0 2px #2824392e;
  border-radius: 20px;
  font:
    700 11px Body,
    sans-serif;
  white-space: nowrap;
  padding: 5px 11px;
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
#hint svg {
  width: 13px;
  height: 13px;
}
.hunting .scene-title {
  visibility: hidden;
}
.care {
  position: relative;
  flex: none;
  padding: 16px 18px 15px;
  border-top: 2px solid var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#b4a3832a 0.75px, transparent 0.9px);
  background-size: 5px 5px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mood {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #33634f;
  border: 1px solid #a7c2ab;
  border-radius: 20px;
  background: #e3efdc;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
}
.mood i {
  width: 6px;
  height: 6px;
  background: #59966a;
  border-radius: 50%;
}
#meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.meter-name,
.meter-name span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.meter-name {
  justify-content: space-between;
  font-size: 11px;
  color: #524957;
  font-weight: 700;
  line-height: 16px;
}
.meter-name img {
  width: 11px;
  height: 12px;
  object-fit: contain;
}
.meter-name b {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 7px;
  border: 1px solid #514858;
  border-radius: 2px;
  background: #e4dfd5;
  overflow: hidden;
  margin-top: 4px;
}
.bar > div {
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 12px,
    #fff8 12px 14px
  );
  transition: width 0.2s;
}
.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.action {
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow:
    0 3px var(--ink),
    inset 0 2px #fff8;
  background: var(--button);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 72px;
}
.action img {
  width: 36px;
  height: 30px;
  object-fit: contain;
}
.action strong {
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.feed {
  --button: #f6b49e;
}
.play {
  --button: #c4b3e4;
}
.rest {
  --button: #f4d487;
}
.action:active {
  transform: translateY(2px);
  box-shadow: 0 1px var(--ink);
}
.daily {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #fffaf0;
  border: 1.5px solid #a49a89;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 16px;
}
.daily-icon,
.entry-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #f8e7b9;
  border-radius: 6px;
  border: 1px solid #dac89e;
}
.daily-icon img {
  width: 18px;
  height: 21px;
  object-fit: contain;
}
.daily-main {
  display: grid;
  gap: 5px;
  flex: 1;
}
.daily-main strong {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.quest-track {
  display: flex;
  gap: 3px;
  width: 65px;
}
.quest-track i {
  height: 4px;
  flex: 1;
  background: #dfd6c4;
  border-radius: 2px;
}
.quest-track i.earned {
  background: #59996f;
}
#quest-count {
  font:
    11px Pixel,
    monospace;
  color: #685e53;
}
.daily > i svg {
  width: 15px;
  height: 15px;
}
nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fffaf0;
  border-top: 1.5px solid #c5bdaf;
  flex: none;
  padding: 3px 11px calc(4px + var(--safe-bottom));
  gap: 6px;
}
nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: none;
  color: #756e77;
  min-height: 50px;
}
nav button i {
  width: 48px;
  height: 25px;
  border-radius: 16px;
}
nav button i svg {
  width: 19px;
  height: 19px;
}
nav button.selected {
  color: #683d36;
}
nav button.selected i {
  background: #f5d4c3;
  color: #663b32;
}
dialog {
  --sheet-width: min(100%, 460px);
  width: var(--sheet-width);
  max-width: 100%;
  max-height: calc(91dvh - var(--safe-top));
  margin: auto auto 0;
  overscroll-behavior: contain;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  padding: 27px 21px calc(20px + var(--safe-bottom));
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 -6px 30px #29253833;
}
dialog::backdrop {
  background: #24213785;
}
.dialog-top {
  height: 0;
}
.handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 4px;
  border-radius: 6px;
  background: #ccc4b9;
}
.dialog-top .square {
  position: absolute;
  right: 6px;
  top: 7px;
}
.dialog-art {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 10px;
}
.dialog-art.large {
  width: 66px;
  height: 66px;
}
dialog h2 {
  padding-right: 29px;
  font-size: 29px;
}
dialog p {
  color: #605865;
  line-height: 1.48;
  font-size: 14px;
  margin: 8px 0 11px;
}
.entries {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.entry {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffdf7;
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  border-radius: 8px;
}
.entry.current {
  background: #fff0d3;
  border-color: #cfb17a;
}
.entry-icon img {
  width: 23px;
  height: 24px;
  object-fit: contain;
}
.entry > span:nth-child(2) {
  display: grid;
  gap: 2px;
}
.entry b {
  font-size: 14px;
}
.entry small {
  font-size: 11px;
  color: #6b626c;
}
.entry > i {
  margin-left: auto;
}
.entry > i svg {
  width: 15px;
  height: 15px;
}
.error {
  color: #ad3041;
}
dialog label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  font-size: 13px;
  margin: 10px 0;
}
dialog input {
  width: 100%;
  font: 16px Body;
  padding: 11px;
  border: 1px solid #918895;
  border-radius: 5px;
}
dialog .primary,
dialog .secondary {
  width: 100%;
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px var(--ink);
  border-radius: 6px;
  font-weight: 700;
  min-height: 44px;
  padding: 9px;
  margin-top: 9px;
  background: #f4bd9f;
}
dialog .secondary {
  background: #f1ece1;
}
#toast {
  position: fixed;
  bottom: calc(66px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90%, 420px);
  z-index: 3;
  background: #302c47;
  color: white;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 3px 10px #28213744;
  pointer-events: none;
}
#toast:not(:empty) {
  padding: 9px 14px;
}
@media (min-width: 501px) {
  body {
    padding: 12px 0;
    align-items: center;
  }
  .pocket {
    width: 430px;
    height: clamp(600px, calc(100dvh - 24px), 900px);
    min-height: 0;
    border: 2px solid #232034;
    border-radius: 19px;
    overflow: hidden;
    box-shadow:
      0 0 0 4px #b1a2bd45,
      0 16px 52px #18142188;
  }
  .stage {
    min-height: 200px;
  }
  dialog {
    max-width: 426px;
    bottom: max(14px, calc((100dvh - 896px) / 2));
    border-bottom: 2px solid var(--ink);
    border-radius: 18px;
  }
}
@media (max-height: 730px) {
  .care {
    padding: 10px 15px 12px;
  }
  #meters {
    margin: 8px 0 11px;
  }
  .action {
    height: 56px;
    flex-direction: column;
    gap: 3px;
  }
  .action img {
    width: 27px;
    height: 26px;
  }
  .daily {
    margin-top: 12px;
  }
  .scene-title {
    top: 10px;
  }
  .panel-head h2 {
    font-size: 22px;
  }
}
@media (max-width: 355px) {
  .brand {
    font-size: 11px;
  }
  .brand img {
    width: 27px;
  }
  .top {
    padding-left: 10px;
    padding-right: 6px;
  }
  .care {
    padding-left: 12px;
    padding-right: 12px;
  }
  #meters {
    gap: 8px;
  }
  .action strong {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-height: 620px) {
  .stage {
    min-height: 226px;
  }
  .scene-title {
    top: 4px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 13px;
  }
  .day-tag {
    justify-self: start;
  }
  .location {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 11px;
  }
  .scene-title h1 {
    grid-column: 1/-1;
    font-size: 21px;
    margin: 0;
  }
  #hint {
    bottom: 6px;
    font-size: 10px;
    padding: 4px 9px;
  }
}

/* Игры используют ту же графику и размеры кнопок, что и деревня. */
.puzzle {
  outline: none;
}
.puzzle-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 21px;
}
.puzzle-heading > .entry-icon {
  width: 45px;
  height: 45px;
  background: #f7dfab;
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px var(--ink);
}
.puzzle-heading > .entry-icon img {
  width: 30px;
  height: 30px;
}
.puzzle-heading small {
  font:
    9px Pixel,
    monospace;
  color: #785d4a;
}
.puzzle-heading h2 {
  font-size: 26px;
  padding: 0;
}
.puzzle > p {
  margin: 12px 0;
}
.puzzle-note:empty {
  display: none;
}
.puzzle .clue,
.puzzle .clues {
  background: #efe8f5;
  border: 1px solid #d1c3de;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 14px;
  color: #53435e;
}
.puzzle .clues {
  padding-left: 28px;
}
.clues li + li {
  margin-top: 3px;
}
.puzzle button:focus-visible {
  outline: 3px solid #477fd1;
  outline-offset: 1px;
}
.retry,
[data-action="watch"] {
  min-height: 44px;
  width: 100%;
  background: none;
  border: 0;
  font: 700 13px Body;
  color: #65576a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.word-grid {
  max-width: 228px;
  margin: 12px auto;
  display: grid;
  gap: 4px;
}
.word-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.word-row span {
  display: grid;
  place-items: center;
  border: 1.5px solid #c5bbaa;
  background: #f1ece1;
  border-radius: 4px;
  aspect-ratio: 1.12;
  font:
    22px Pixel,
    monospace;
}
.word-row.writing span {
  border-color: #706079;
  background: white;
}
.word-row .exact,
.keys .exact,
.legend .exact {
  background: #96ccaa;
}
.word-row .near,
.keys .near,
.legend .near {
  background: #f6d286;
}
.word-row .absent,
.keys .absent,
.legend .absent {
  background: #c9c5ce;
}
.puzzle .legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #7b7181;
}
.keys {
  display: grid;
  gap: 4px;
}
.keys > div {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.keys button {
  background: #fffaf0;
  font: 700 15px Body;
  flex: 0 1 10%;
  min-width: 0;
  padding: 0;
  min-height: 39px;
  border: 1px solid #bdb2a4;
  border-radius: 4px;
  box-shadow: 0 1px #938b83;
}
.word-actions,
.arrows {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
}
.word-actions button,
.arrows button {
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 8px 14px;
  min-height: 44px;
  box-shadow: 0 2px var(--ink);
  background: #e5d9ef;
  font-weight: 700;
}
.word-actions button:last-child {
  flex: 1;
  background: #f5beaa;
}
.ornament-grid,
.postcard-grid,
.wire-grid,
.ice-grid,
.lantern-grid {
  display: grid;
  gap: 6px;
  margin: 15px auto;
  max-width: 320px;
}
.ornament-grid {
  grid-template-columns: repeat(4, 1fr);
}
.ornament {
  aspect-ratio: 1/1.15;
  background: repeating-linear-gradient(45deg, #75658f 0 4px, #706087 4px 8px);
  border: 2px solid #443951;
  border-radius: 8px;
  color: #ffebc1;
  font-size: 27px;
  box-shadow: 0 2px #443951;
}
.ornament.up {
  background: #fae2ac;
}
.ornament.matched {
  background: #c5deca;
  box-shadow: none;
}
.ornament img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.puzzle .board-status,
.puzzle-note {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
.ice-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 3px solid #544d6a;
  background: #acbccf;
  border-radius: 8px;
  overflow: hidden;
  touch-action: none;
}
.ice-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.12;
}
.ice-grid .ice {
  background: linear-gradient(
    150deg,
    #d3eef1 10%,
    #bddee8 11% 65%,
    #cde8ee 66%
  );
}
.ice-grid .bank {
  background: #8599aa;
  box-shadow:
    inset 0 7px #fff9f1,
    inset 0 12px #d0d8e5;
}
.ice-grid img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.arrows button {
  flex: 1;
  font-size: 24px;
}
.lantern-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lantern {
  border: 2px solid var(--ink);
  border-radius: 9px;
  min-height: 90px;
  background: #f1eadd;
  font-weight: 700;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}
.glass {
  position: relative;
  background: var(--glass);
  border: 2px solid var(--ink);
  border-radius: 7px 7px 11px 11px;
  box-shadow: inset 3px 0 #fff5;
  width: 34px;
  line-height: 32px;
  font: 19px/32px Pixel;
}
.glass:before,
.glass:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--ink);
  width: 70%;
  left: 15%;
  top: -5px;
}
.glass:after {
  top: auto;
  bottom: -4px;
}
.lamp-0 {
  --glass: #f4a5a6;
}
.lamp-1 {
  --glass: #f2ca71;
}
.lamp-2 {
  --glass: #8acbb8;
}
.lamp-3 {
  --glass: #bcabe2;
}
.lantern.flash {
  background: var(--glass);
  outline: 3px solid #443b55;
  outline-offset: 1px;
}
.lantern.flash .glass {
  background: #fff6be;
}
.postcard-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 12px Body;
}
.postcard-guide img {
  width: 74px;
  height: 74px;
  border: 3px solid white;
  box-shadow: 0 1px 4px #564b6066;
  transform: rotate(-3deg);
}
.postcard-grid,
.wire-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border: 3px solid #463b50;
  background: #463b50;
  max-width: 285px;
}
.postcard-grid button {
  aspect-ratio: 1;
  background-image: url("/assets/postcard.png");
  background-size: 300% 300%;
  image-rendering: pixelated;
  border: 0;
}
.postcard-grid .picked {
  outline: 4px solid #ffce60;
  outline-offset: -4px;
}
.gift-form label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gift-form img {
  width: 29px;
  height: 32px;
  object-fit: contain;
}
.gift-form select {
  margin-left: auto;
  min-height: 44px;
  font: 16px Body;
  padding: 0 6px;
  background: #fffbf2;
  border: 1px solid #a399aa;
  border-radius: 5px;
}
.wiring {
  margin-top: 16px;
  background: #e9f0e3;
  border-radius: 8px;
  padding: 10px;
}
.terminal {
  display: flex;
  justify-content: center;
}
.terminal img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.wire-grid {
  margin: 5px auto;
  max-width: 236px;
}
.wire {
  border: 0;
  aspect-ratio: 1;
  position: relative;
  background: #496456;
  --wire: #96ac93;
}
.wire.lit {
  background: #486b54;
  --wire: #ffe387;
}
.wire i {
  position: absolute;
  background: var(--wire);
}
.wire .north,
.wire .south {
  width: 9%;
  height: 50%;
  left: 45.5%;
}
.wire .north {
  top: 0;
}
.wire .south {
  bottom: 0;
}
.wire .west,
.wire .east {
  height: 9%;
  width: 50%;
  top: 45.5%;
}
.wire .west {
  left: 0;
}
.wire .east {
  right: 0;
}
.wire span {
  position: absolute;
  top: 39%;
  left: 39%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--wire);
  border: 2px solid #354738;
}
.wire.lit span {
  box-shadow: 0 0 8px #ffc461;
}
.cabin-room {
  height: 180px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: repeating-linear-gradient(
    0deg,
    #845e55 0 14px,
    #a77b6a 15px 17px
  );
  border-bottom: 22px solid #70524c;
}
.hearth {
  position: absolute;
  right: 13%;
  bottom: 0;
  border: 8px solid #958183;
  background: #5b4145;
  font-size: 35px;
}
.napping {
  position: absolute;
  bottom: -3%;
  left: 12%;
  height: 73%;
}
.hung-card {
  position: absolute;
  right: 13%;
  top: 6%;
  width: 48px;
  border: 3px solid #e7c195;
  transform: rotate(4deg);
}
@media (max-height: 650px) {
  .word-grid {
    max-width: 178px;
  }
  .puzzle > p {
    margin: 7px 0;
  }
  .keys button {
    min-height: 34px;
  }
}
.ornament-shelf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #eaf0e2;
  padding: 8px;
  border-radius: 8px;
}
.ornament-shelf img,
.ornament-shelf i {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.ornament-shelf img:first-child {
  width: 28px;
  height: 32px;
}
.ornament-shelf i {
  border: 1px dashed #9faf9b;
  border-radius: 50%;
}
.puzzle[aria-busy="true"] button {
  cursor: progress;
}
