* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  align-items: center;
  background: #101114;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.game-shell,
.game-shell * {
  -webkit-user-select: none;
  user-select: none;
}

.game-shell img,
.game-shell svg {
  -webkit-user-drag: none;
  user-drag: none;
}

.game-shell input,
.game-shell select,
.game-shell textarea,
.game-shell [contenteditable="true"],
.dialog-editor-view,
.dialog-editor-view *,
.editor-panel,
.editor-panel * {
  -webkit-user-select: text;
  user-select: text;
}

.hidden {
  display: none !important;
}

.game-shell {
  height: 100vh;
  max-height: 1280px;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  width: 720px;
}

.world-scroll {
  cursor: grab;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  position: absolute;
  scrollbar-width: none;
  touch-action: none;
}

.world-scroll::-webkit-scrollbar {
  display: none;
}

.world-scroll.is-dragging {
  cursor: grabbing;
}

.world-content {
  height: 2048px;
  position: relative;
  width: 2048px;
}

.game {
  background: #18191c;
  height: 2048px;
  overflow: hidden;
  position: relative;
  transform-origin: 0 0;
  width: 2048px;
}

.viewport-ui {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 500;
}

.viewport-ui > * {
  pointer-events: auto;
}

.ui-bg,
.room-bg,
.sprite,
.layer,
.action-button,
.top-menu-button,
.level-test {
  position: absolute;
}

.ui-bg {
  height: 2048px;
  inset: 0;
  object-fit: cover;
  width: 2048px;
  z-index: 0;
}

.room-bg {
  background-position: 0 0;
  background-repeat: no-repeat;
  height: 2048px;
  left: 0;
  top: 0;
  width: 2048px;
  z-index: 1;
}

.layer {
  inset: 0;
}

#items {
  z-index: 20;
}

.water-effects {
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
}

.water-effect {
  left: var(--x, 0);
  pointer-events: none;
  position: absolute;
  top: var(--y, 0);
  transform: rotate(var(--angle, 0deg));
}

.waterfall-foam {
  height: var(--h, 120px);
  opacity: 0;
  width: var(--w, 34px);
}

.waterfall-foam::before {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, .92) 0 34%, transparent 36%),
    radial-gradient(ellipse at 54% 60%, rgba(255, 255, 255, .62) 0 42%, transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .08));
  border-radius: 46% 54% 52% 48% / 16% 18% 80% 84%;
  content: "";
  filter: blur(.8px);
  inset: 0;
  position: absolute;
}

.waterfall-foam {
  animation: waterfall-drop 3.2s ease-in infinite;
  animation-delay: var(--delay, 0s);
}

.pond-foam {
  border-radius: 50%;
  height: var(--h, 280px);
  mix-blend-mode: screen;
  opacity: 0;
  width: var(--w, 420px);
}

.pond-foam::before {
  background:
    radial-gradient(ellipse at 26% 32%, transparent 0 27%, rgba(255, 255, 255, .34) 28% 31%, transparent 32%),
    radial-gradient(ellipse at 68% 44%, transparent 0 25%, rgba(255, 255, 255, .28) 26% 29%, transparent 30%),
    radial-gradient(ellipse at 48% 68%, transparent 0 20%, rgba(255, 255, 255, .25) 21% 24%, transparent 25%),
    linear-gradient(28deg, transparent 0 44%, rgba(255, 255, 255, .18) 45% 47%, transparent 48%),
    linear-gradient(112deg, transparent 0 49%, rgba(255, 255, 255, .16) 50% 52%, transparent 53%);
  border-radius: inherit;
  content: "";
  inset: 0;
  position: absolute;
}

.pond-foam {
  animation: pond-foam-drift 7.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.stream-flow {
  height: var(--h, 18px);
  opacity: 0;
  width: var(--w, 74px);
}

.stream-flow::before {
  background:
    radial-gradient(ellipse at 78% 50%, rgba(255, 255, 255, .78) 0 18%, transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7) 38%, rgba(255, 255, 255, .18));
  border-radius: 999px 70% 70% 999px;
  content: "";
  filter: blur(.4px);
  inset: 0;
  position: absolute;
}

.stream-flow {
  animation: stream-run 3.9s ease-out infinite;
  animation-delay: var(--delay, 0s);
}

.clouds {
  pointer-events: none;
  z-index: 110;
}

.cloud-cover {
  background-image: url("images/ui/zoo_cloud.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .94;
  pointer-events: none;
  position: absolute;
  transition:
    opacity 340ms ease,
    transform 340ms ease;
  z-index: 1;
}

.cloud-cover.is-hidden {
  opacity: 0;
  transform: scale(.92);
}

.sprite {
  background-position: 0 0;
  background-repeat: no-repeat;
  display: block;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  will-change: opacity, transform;
}

.sprite.animating,
.animal-motion-group.animating {
  transition-duration: 620ms;
  transition-property: opacity, transform;
}

.sprite.removing,
.animal-motion-group.removing {
  transition-timing-function:
    cubic-bezier(.72, 0, 1, .42),
    cubic-bezier(.5, 0, .9, .55);
}

.sprite.appearing,
.animal-motion-group.appearing {
  transition-timing-function:
    cubic-bezier(0, .58, .22, 1),
    cubic-bezier(.08, .68, .18, 1);
}

.sprite.variant-switching,
.animal-motion-group.variant-switching {
  animation: variant-switch 420ms cubic-bezier(.2, .7, .2, 1);
}

.animal-motion-group {
  animation: animal-breathe 4.8s ease-in-out infinite;
  cursor: pointer;
  pointer-events: auto;
  position: absolute;
  touch-action: none;
  transform-origin: var(--animal-breath-origin, 50% 92%);
  will-change: transform;
}

.animal-motion-group.is-sleeping {
  animation-duration: 7.2s;
  animation-name: animal-sleep-breathe;
}

.animal-motion-group.animal-click-wiggle {
  animation: animal-click-wiggle 460ms ease-in-out;
}

.animal-motion-group.animal-wake-nudge {
  animation: animal-wake-nudge 520ms ease-out;
}

.sprite.animal-body {
  transform-origin: 50% 92%;
}

.sprite.animal-body:not(.is-grouped-animal-part) {
  animation: animal-breathe 4.8s ease-in-out infinite;
}

.sprite.animal-body.is-sleeping:not(.is-grouped-animal-part) {
  animation-duration: 7.2s;
  animation-name: animal-sleep-breathe;
}

.sprite.animal-closed-eyes {
  opacity: 0;
  transition: opacity 90ms ease;
}

.sprite.animal-closed-eyes.is-visible {
  opacity: 1 !important;
}

.sprite.animal-appendage {
  animation-delay: var(--motion-delay, 0s);
  transform-origin: var(--motion-origin, 50% 80%);
}

.sprite.animal-tail.motion-slowAndSmall {
  animation: tail-slow-small 10.5s ease-in-out infinite;
}

.sprite.animal-tail.motion-wideSharp {
  animation: tail-wide-sharp 11s ease-in-out infinite;
}

.sprite.animal-ear.motion-earSmall,
.sprite.animal-ear.motion-earTwitch {
  animation: ear-small 9s ease-in-out infinite;
}

.sprite.animal-ear.motion-wideSharp {
  animation: ear-wide-sharp 10s ease-in-out infinite;
}

.sprite.is-transitioning,
.animal-motion-group.is-transitioning {
  animation: none !important;
}

.animal-float-icon {
  animation: animal-float-icon-rise var(--float-duration, 2200ms) ease-out both;
  animation-delay: var(--float-delay, 0ms);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 2px 0 rgba(92, 75, 35, .22));
  height: var(--icon-size, 28px);
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate3d(-50%, -50%, 0) scale(.72);
  width: var(--icon-size, 28px);
  z-index: 10000;
}

.actions {
  pointer-events: none;
  z-index: 120;
}

.action-button {
  background: center / contain no-repeat;
  border: 0;
  cursor: pointer;
  height: 82px;
  padding: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  width: 81px;
}

.action-button.repair-action {
  background-image: url("images/ui/action_repair_button.png");
}

.action-button.decor-action {
  background-image: url("images/ui/action_buy_button_available.png");
}

.action-button.decor-action.is-unaffordable {
  background-image: url("images/ui/action_buy_button_unavailable.png");
}

.action-button:hover,
.action-button:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.action-button:active {
  transform: translate(-50%, -50%) scale(.96);
}

.action-button[disabled] {
  cursor: default;
  opacity: .45;
  pointer-events: none;
}

.action-button.repair-action.is-unaffordable {
  filter: grayscale(.38);
}

.action-button.is-suppressed {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition-duration: 480ms;
}

.action-button.is-restoring {
  transition-duration: 480ms;
}

.action-price {
  background: rgba(255, 255, 255, .94);
  border: 2px solid rgba(75, 88, 52, .48);
  border-radius: 8px;
  bottom: -12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .26);
  color: #202623;
  font-size: 17px;
  font-weight: 900;
  left: 50%;
  line-height: 1;
  min-width: 52px;
  padding: 5px 8px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}

.top-menu-button {
  background: rgba(31, 34, 38, .82);
  border: 2px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 18px;
  right: 18px;
  top: 18px;
  z-index: 180;
}

.top-menu-button:hover,
.top-menu-button:focus-visible {
  background: rgba(50, 56, 62, .9);
}

.focus-action-button {
  align-items: center;
  background: linear-gradient(#83d93f, #3a9920);
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .34),
    0 5px 0 rgba(31, 94, 23, .9),
    0 7px 16px rgba(0, 0, 0, .34);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 34px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 5px;
  position: absolute;
  right: 18px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
  top: 84px;
  width: 64px;
  z-index: 180;
}

.focus-action-button:hover,
.focus-action-button:focus-visible {
  filter: brightness(1.05);
}

.minigame-map-button {
  align-items: center;
  background: url("images/ui/minigame_play_button_orange.png") center / contain no-repeat;
  border: 0;
  bottom: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  filter: drop-shadow(0 9px 8px rgba(49, 38, 17, .34));
  height: 154px;
  justify-content: center;
  padding: 7px 0 0 18px;
  position: absolute;
  right: -2px;
  text-shadow:
    0 3px 0 rgba(163, 91, 8, .82),
    0 0 4px rgba(142, 75, 8, .34);
  transform-origin: 58% 50%;
  transition:
    filter 160ms ease,
    opacity 280ms ease,
    transform 440ms cubic-bezier(.18, .82, .2, 1);
  width: 184px;
  z-index: 190;
}

.minigame-map-button:hover,
.minigame-map-button:focus-visible {
  filter: brightness(1.06) drop-shadow(0 11px 10px rgba(49, 38, 17, .38));
  transform: scale(1.055);
}

.minigame-map-button:active {
  filter: brightness(.98) drop-shadow(0 5px 5px rgba(49, 38, 17, .3));
  transform: translateY(4px) scale(.98);
}

.minigame-map-button.is-away {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px)) scale(.94);
}

.minigame-map-button:disabled {
  cursor: default;
  filter: grayscale(.72) drop-shadow(0 5px 5px rgba(70, 79, 67, .45));
  opacity: .72;
}

.minigame-map-button strong {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.resource-hud {
  display: flex;
  gap: 10px;
  left: 14px;
  position: absolute;
  top: 14px;
  z-index: 185;
}

.resource-pill {
  align-items: center;
  background:
    linear-gradient(rgba(255, 245, 228, .96), rgba(235, 204, 174, .96));
  border: 3px solid rgba(188, 149, 112, .65);
  border-radius: 28px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .55),
    0 5px 10px rgba(69, 45, 27, .22);
  color: #8a6447;
  display: flex;
  font-size: 24px;
  font-weight: 900;
  gap: 8px;
  height: 54px;
  min-width: 128px;
  padding: 5px 18px 6px 12px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.resource-pill img {
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.level-test {
  align-items: center;
  background: rgba(29, 32, 36, .84);
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 10px;
  left: 18px;
  min-height: 48px;
  padding: 6px 8px;
  top: 18px;
  z-index: 180;
}

.level-step {
  align-items: center;
  background: #f2f4f0;
  border: 0;
  border-radius: 6px;
  color: #1d2321;
  cursor: pointer;
  display: flex;
  font-size: 30px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.level-value {
  font-size: 17px;
  font-weight: 700;
  min-width: 96px;
  text-align: center;
}

.dialog-overlay {
  inset: 0;
  pointer-events: auto;
  position: absolute;
  z-index: 230;
}

.dialog-overlay::before {
  background: linear-gradient(transparent 48%, rgba(0, 0, 0, .34));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.dialog-character {
  background-repeat: no-repeat;
  bottom: 140px;
  max-height: 430px;
  max-width: 280px;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.dialog-character-left {
  left: 28px;
}

.dialog-character-right {
  right: 28px;
  transform: scaleX(-1);
}

.dialog-box {
  background: rgba(248, 247, 239, .96);
  border: 4px solid rgba(54, 58, 52, .72);
  border-radius: 8px;
  bottom: 34px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
  color: #1e2524;
  left: 42px;
  min-height: 126px;
  padding: 18px 154px 18px 22px;
  position: absolute;
  right: 42px;
  z-index: 2;
}

.dialog-speaker {
  color: #426b24;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.dialog-text {
  font-size: 22px;
  line-height: 1.22;
  margin: 0;
  overflow: visible;
}

.dialog-next {
  display: none;
  background: linear-gradient(#76bd32, #3f941f);
  border: 0;
  border-radius: 8px;
  bottom: 0;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .4),
    0 4px 0 rgba(34, 86, 18, .9);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  min-height: 48px;
  min-width: 112px;
  position: absolute;
  right: 20px;
}

.room-menu {
  align-items: center;
  background: rgba(12, 14, 18, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: absolute;
  z-index: 240;
}

.room-menu-panel {
  background: rgba(35, 39, 43, .96);
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 904px;
  max-width: 650px;
  overflow: hidden;
  padding: 22px;
  width: 100%;
}

.menu-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.menu-heading h1 {
  color: #fff;
  font-size: 32px;
  line-height: 1;
  margin: 0;
}

.menu-tabs {
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.menu-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.menu-tab.selected {
  background: #f2f4f0;
  color: #202623;
}

.menu-view {
  min-height: 0;
}

.room-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.room-button,
.variant-command {
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.room-button {
  background: linear-gradient(#76bd32, #3f941f);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .4),
    0 5px 0 rgba(34, 86, 18, .9);
  min-height: 64px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.room-button:disabled {
  cursor: default;
  filter: grayscale(.75);
  opacity: .62;
}

.dialog-editor-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-toolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1fr) 48px minmax(120px, auto);
}

.editor-field {
  display: grid;
  gap: 5px;
}

.editor-field span {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-field input,
.editor-field select,
.editor-field textarea,
.dialog-export-output {
  background: rgba(255, 255, 255, .94);
  border: 2px solid rgba(24, 30, 29, .3);
  border-radius: 6px;
  color: #1c2423;
  min-height: 38px;
  padding: 7px 9px;
  width: 100%;
}

.editor-field textarea {
  min-height: 88px;
  resize: vertical;
}

.editor-field.compact {
  max-width: 130px;
}

.editor-icon-button,
.editor-command {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.editor-icon-button {
  background: #f2f4f0;
  color: #1f2524;
  font-size: 30px;
  height: 44px;
  line-height: 1;
  width: 44px;
}

.editor-icon-button.small {
  font-size: 22px;
  height: 32px;
  width: 32px;
}

.editor-command {
  background: #e7ece5;
  color: #1f2524;
  min-height: 44px;
  padding: 0 14px;
}

.editor-command.primary {
  background: linear-gradient(#76bd32, #3f941f);
  color: #fff;
}

.editor-command.danger,
.row-delete {
  background: linear-gradient(#ea6659, #b43831);
  color: #fff;
}

.dialog-editor-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 520px;
}

.dialog-list,
.dialog-form {
  background: rgba(18, 21, 24, .52);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}

.dialog-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding: 10px;
}

.dialog-list-empty {
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 1.3;
  margin: 6px;
}

.dialog-list-item {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 9px 48px 9px 9px;
  position: relative;
  text-align: left;
}

.dialog-list-item.selected {
  border-color: #f7cf3a;
  box-shadow: 0 0 0 2px rgba(247, 207, 58, .28);
}

.dialog-list-title {
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dialog-list-meta {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.dialog-list-delete {
  position: absolute;
  right: 8px;
  top: 8px;
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 620px;
  overflow: auto;
  padding: 12px;
}

.dialog-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 120px;
}

.editor-section {
  display: grid;
  gap: 8px;
}

.editor-section-title {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  justify-content: space-between;
}

.editor-stack {
  display: grid;
  gap: 8px;
}

.condition-row,
.line-row {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 9px;
}

.condition-row {
  grid-template-columns: 1fr 1fr 1fr 86px 34px;
}

.line-row {
  grid-template-columns: 86px 1fr 104px 34px;
}

.line-preview {
  align-items: center;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.line-preview img,
.line-preview .character-preview {
  background: rgba(255, 255, 255, .12);
  border-radius: 6px;
  background-repeat: no-repeat;
}

.line-preview img {
  height: 70px;
  object-fit: contain;
  width: 70px;
}

.line-preview .character-preview {
  max-height: 70px;
  max-width: 70px;
}

.line-main {
  display: grid;
  gap: 8px;
}

.line-name {
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 800;
  max-width: 86px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-delete {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  height: 34px;
  line-height: 1;
  width: 34px;
}

.dialog-form-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.dialog-export-output {
  color: #101514;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  height: 104px;
  min-height: 104px;
  resize: none;
}

.variant-panel {
  bottom: 0;
  height: 286px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 220;
}

.variant-options {
  align-items: center;
  bottom: 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  left: 88px;
  pointer-events: auto;
  position: absolute;
  right: 88px;
}

.variant-option {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 4px solid rgba(75, 88, 52, .42);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .8),
    0 5px 12px rgba(0, 0, 0, .32);
  cursor: pointer;
  display: block;
  height: 244px;
  padding: 0;
  position: relative;
  width: 126px;
}

.variant-option.selected {
  border-color: #f7cf3a;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .9),
    0 0 0 4px rgba(93, 151, 35, .9),
    0 7px 14px rgba(0, 0, 0, .36);
}

.variant-option img,
.variant-preview {
  background-position: 0 0;
  background-repeat: no-repeat;
  left: 50%;
  max-height: none;
  max-width: none;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.variant-buy {
  background: url("images/ui/variant_buy_button.png") center / 100% 100% no-repeat;
  border: 0;
  bottom: 9px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  height: 48px;
  left: 50%;
  line-height: 1;
  min-width: 112px;
  padding: 0 8px 4px 34px;
  position: absolute;
  text-align: center;
  text-shadow: 0 2px 0 rgba(29, 111, 22, .36);
  transform: translateX(-50%);
  z-index: 1;
}

.variant-buy:disabled {
  cursor: default;
  filter: grayscale(.62);
  opacity: .68;
}

.variant-skills {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(98, 118, 72, .18);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  display: flex;
  flex-direction: column;
  gap: 4px;
  left: 8px;
  padding: 4px;
  pointer-events: none;
  position: absolute;
  right: 8px;
  top: 10px;
  z-index: 2;
}

.variant-skill-row {
  align-items: center;
  display: flex;
  gap: 7px;
  height: 22px;
  justify-content: center;
}

.variant-skill-icon {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
}

.variant-skill-value {
  background: rgba(255, 255, 255, .82);
  border-radius: 5px;
  box-shadow: inset 0 -1px 0 rgba(88, 103, 64, .18);
  color: #38432d;
  flex: 0 0 31px;
  font-size: 17px;
  font-weight: 900;
  line-height: 20px;
  min-width: 31px;
  text-align: center;
}

.variant-option.has-skills .variant-preview,
.variant-option.has-skills .variant-preview-image {
  top: 62%;
}

.variant-map-skills {
  background: rgba(12, 15, 14, .72);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 6px 14px rgba(0, 0, 0, .34);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 86px;
  opacity: 0;
  padding: 6px 8px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px)) translateY(8px) scale(.96);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  z-index: 10050;
}

.variant-map-skills.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 12px)) translateY(0) scale(1);
}

.variant-map-skills .variant-skill-row {
  height: 24px;
  justify-content: flex-start;
}

.variant-map-skills .variant-skill-icon {
  flex-basis: 24px;
  height: 24px;
  width: 24px;
}

.variant-map-skills .variant-skill-value {
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  min-width: 34px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .34);
}

.variant-buy:hover,
.variant-buy:focus-visible {
  filter: brightness(1.07);
}

.variant-command {
  bottom: 24px;
  min-height: 58px;
  padding: 0 22px;
  pointer-events: auto;
  position: absolute;
}

.variant-choose {
  display: none;
  background: linear-gradient(#77c83a, #3f9821);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .35),
    0 5px 0 rgba(31, 94, 23, .9);
  left: 24px;
}

.variant-close {
  background: linear-gradient(#ea6659, #b43831);
  border-radius: 50%;
  bottom: 96px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .34),
    0 5px 0 rgba(113, 35, 31, .9);
  font-size: 30px;
  height: 52px;
  line-height: 1;
  min-height: 52px;
  padding: 0 0 4px;
  right: 24px;
  width: 52px;
}

.cashier-building {
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 130;
}

.cashier-building-image {
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  width: 100%;
}

.cashier-income-bubble {
  align-items: center;
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, .98), rgba(255, 244, 205, .96) 62%, rgba(246, 205, 88, .94));
  border: 3px solid rgba(217, 154, 39, .86);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .8),
    0 7px 15px rgba(93, 60, 25, .26);
  color: #b96f19;
  display: flex;
  gap: 8px;
  height: 62px;
  justify-content: center;
  left: 50%;
  min-width: 138px;
  padding: 6px 16px 8px 10px;
  pointer-events: auto;
  position: absolute;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
  top: -36px;
  transform: translateX(-50%) scale(.96);
  transition:
    filter 160ms ease,
    opacity 160ms ease,
    transform 180ms ease;
}

.cashier-income-bubble::after {
  background: inherit;
  border-bottom: 3px solid rgba(217, 154, 39, .86);
  border-right: 3px solid rgba(217, 154, 39, .86);
  bottom: -9px;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
  width: 18px;
  z-index: -1;
}

.cashier-income-bubble.is-ready {
  animation: cashier-bubble-ready 1.35s ease-in-out infinite;
  cursor: pointer;
}

.cashier-income-bubble:disabled {
  cursor: default;
  opacity: .78;
}

.cashier-income-bubble:not(:disabled):hover,
.cashier-income-bubble:not(:disabled):focus-visible {
  filter: brightness(1.08);
  transform: translateX(-50%) scale(1.04);
}

.cashier-income-coins {
  display: flex;
  margin-left: -2px;
  min-width: 54px;
}

.cashier-income-coin {
  height: 34px;
  margin-left: -11px;
  object-fit: contain;
  width: 34px;
}

.cashier-income-coin:first-child {
  margin-left: 0;
}

.cashier-income-amount {
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.purchase-confetti {
  animation: purchase-confetti-pop 980ms cubic-bezier(.12, .72, .22, 1) forwards;
  animation-delay: var(--confetti-delay, 0ms);
  border-radius: 2px;
  height: 12px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%) rotate(0deg) scale(.72);
  width: 7px;
  z-index: 260;
}

.room-complete-overlay {
  align-items: center;
  background: rgba(45, 25, 15, .32);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: absolute;
  z-index: 260;
}

.room-complete-panel {
  animation: room-complete-panel-in 520ms cubic-bezier(.18, .84, .2, 1.12) both;
  max-width: 650px;
  position: relative;
  width: min(650px, 100%);
}

.room-complete-panel > img {
  display: block;
  filter: drop-shadow(0 16px 20px rgba(63, 35, 9, .3));
  height: auto;
  width: 100%;
}

.room-complete-content {
  align-items: center;
  color: #9b5d17;
  display: flex;
  flex-direction: column;
  inset: 28% 16% 20%;
  justify-content: center;
  position: absolute;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, .86),
    0 5px 10px rgba(126, 78, 18, .16);
}

.room-complete-title {
  font-size: 44px;
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}

.room-complete-reward {
  align-items: center;
  color: #1f94c9;
  display: flex;
  font-size: 50px;
  font-weight: 900;
  gap: 12px;
  line-height: 1;
  margin-top: 22px;
}

.room-complete-reward img {
  height: 54px;
  object-fit: contain;
  width: 62px;
}

.room-firework {
  height: 1px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 270;
}

.room-firework span {
  animation: room-firework-spark 880ms cubic-bezier(.12, .66, .18, 1) forwards;
  animation-delay: var(--firework-delay, 0ms);
  border-radius: 999px;
  box-shadow:
    0 0 8px currentColor,
    0 0 16px rgba(255, 255, 255, .86);
  height: 9px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%) scale(.4);
  width: 9px;
}

.arrow-minigame {
  background: #fbf4df;
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 300;
}

.arrow-minigame-screen {
  align-items: center;
  background:
    linear-gradient(rgba(255, 250, 232, .92), rgba(255, 246, 220, .92)),
    url("images/minigame-ui/lobby/bg_grid.png") center / cover;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 122px 18px 22px;
  position: relative;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
}

.minigame-top-panel {
  align-items: center;
  background: url("images/minigame-ui/panel/top_wide_panel.png") center / 100% 100% no-repeat;
  display: grid;
  grid-template-columns: 160px 1fr 76px;
  height: 98px;
  left: 7px;
  padding: 17px 22px 17px 34px;
  position: absolute;
  right: 7px;
  top: 11px;
  z-index: 3;
}

.minigame-level-label {
  color: #9d7656;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.minigame-stars,
.minigame-result-stars {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.minigame-top-panel .minigame-stars {
  left: 50%;
  position: absolute;
  top: calc(50% - 2px);
  transform: translate(-50%, -50%);
}

.minigame-star-slot {
  align-items: center;
  background: url("images/minigame-ui/panel/star_bg.png") center calc(50% + 4px) / contain no-repeat;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.minigame-star-slot img {
  height: 48px;
  object-fit: contain;
  width: 50px;
}

.minigame-close {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  height: 64px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
}

.minigame-close img {
  height: 50px;
  object-fit: contain;
  width: 50px;
}

.arrow-board-shell {
  align-items: center;
  background:
    linear-gradient(rgba(255, 250, 232, .92), rgba(255, 246, 220, .92)),
    url("images/minigame-ui/lobby/bg_grid.png") center / cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
  display: flex;
  justify-content: center;
  max-height: calc(100vh - 486px);
  min-height: 440px;
  overflow: visible;
  padding: 18px;
  touch-action: none;
  width: min(604px, calc(100% - 34px));
}

.arrow-board-shell.is-dragging {
  cursor: default;
}

.arrow-board {
  display: block;
  height: 100%;
  max-height: 640px;
  max-width: 100%;
  overflow: visible;
  touch-action: manipulation;
  width: 100%;
}

.mini-arrow {
  cursor: default;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .28));
  transform-box: fill-box;
  transform-origin: center;
  will-change: opacity, transform;
}

.mini-arrow-line {
  pointer-events: none;
}

.mini-arrow-hit {
  pointer-events: stroke;
}

.mini-arrow.is-blocked {
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .48));
}

.mini-arrow.is-flying {
  pointer-events: none;
}

.mini-arrow.is-hinted .mini-arrow-line {
  stroke: #a8f67d;
}

.mini-arrow.is-dissolving {
  pointer-events: none;
}

.mini-ray-layer,
.mini-effect-layer {
  pointer-events: none;
}

.mini-ray {
  opacity: .34;
  pointer-events: none;
  stroke: #6c5238;
  stroke-linecap: round;
  stroke-width: 3.2;
}

.mini-ruler-ray {
  opacity: .3;
}

.mini-highlight-ray {
  opacity: .38;
  stroke-width: 4;
}

.minigame-hint-panel {
  align-items: center;
  background: url("images/minigame-ui/panel/hint_panel.png") center / 100% 100% no-repeat;
  bottom: 0;
  color: #a4866d;
  display: grid;
  gap: 18px;
  grid-template-columns: 112px 1fr;
  min-height: 150px;
  padding: 28px 50px 34px 54px;
  pointer-events: none;
  position: absolute;
  transform: translateY(-7px) scale(1.1);
  transform-origin: bottom center;
  width: min(652px, calc(100% - 28px));
  z-index: 5;
}

.minigame-hint-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #9b765c;
  cursor: pointer;
  display: flex;
  font-size: 42px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  right: 28px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .42);
  top: 18px;
  width: 44px;
}

.minigame-hint-icon {
  height: 92px;
  justify-self: center;
  object-fit: contain;
  transform: rotate(-14deg);
  width: 92px;
}

.minigame-hint-panel strong,
.minigame-hint-panel span {
  display: block;
  line-height: 1.08;
}

.minigame-hint-panel strong {
  color: #8d7057;
  font-size: 31px;
  font-weight: 900;
  margin-bottom: 12px;
}

.minigame-hint-panel span {
  font-size: 25px;
  font-weight: 900;
}

.minigame-booster-row {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  width: min(590px, calc(100% - 68px));
}

.minigame-booster {
  align-items: center;
  background:
    linear-gradient(rgba(255, 242, 224, .96), rgba(238, 208, 178, .96));
  border: 3px solid rgba(192, 151, 113, .58);
  border-radius: 8px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .55),
    0 5px 0 rgba(166, 132, 101, .55),
    0 8px 13px rgba(91, 62, 38, .18);
  display: flex;
  height: 122px;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.minigame-booster:not(:disabled) {
  cursor: pointer;
}

.minigame-booster.selected {
  border-color: rgba(80, 201, 84, .86);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .65),
    0 0 0 4px rgba(80, 201, 84, .42),
    0 6px 0 rgba(61, 157, 73, .62),
    0 10px 16px rgba(91, 62, 38, .2);
  transform: translateY(-4px);
}

.minigame-booster:disabled {
  filter: grayscale(.72);
  opacity: .58;
}

.minigame-booster img {
  max-height: 78px;
  max-width: 82px;
  object-fit: contain;
}

.booster-count {
  align-items: center;
  background: linear-gradient(#a3ff7b, #52d657);
  border: 3px solid rgba(78, 196, 84, .7);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 26px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -8px;
  text-shadow: 0 2px 0 rgba(35, 120, 44, .44);
  top: -24px;
  width: 48px;
}

.booster-count.ruler-count {
  font-size: 30px;
}

.minigame-spark {
  animation: minigame-spark-flight var(--spark-duration, 200ms) cubic-bezier(.14, .8, .22, 1) forwards;
  animation-delay: var(--spark-delay, 0ms);
  border-radius: 999px;
  box-shadow:
    0 0 8px currentColor,
    0 0 15px rgba(255, 255, 255, .82);
  color: inherit;
  height: 10px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%) scale(.62);
  width: 10px;
  z-index: 7;
}

.minigame-result {
  align-items: center;
  background: rgba(0, 0, 0, .42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: absolute;
  z-index: 6;
}

.minigame-result-panel {
  background:
    linear-gradient(#ead2bd 0 76px, #fff0d9 76px);
  border: 4px solid rgba(190, 151, 113, .78);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, .5),
    0 12px 24px rgba(90, 60, 33, .25);
  color: #8d7057;
  display: flex;
  flex-direction: column;
  min-height: 490px;
  padding: 38px 32px 32px;
  position: relative;
  text-align: center;
  width: min(530px, 100%);
}

.minigame-result-close {
  background: transparent;
  border: 0;
  color: #b08967;
  cursor: pointer;
  font-size: 48px;
  font-weight: 900;
  height: 56px;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 20px;
  top: 12px;
  width: 56px;
}

.minigame-result-stars {
  margin: -76px 0 23px;
}

.minigame-result-panel h2 {
  color: #856b54;
  font-size: 36px;
  line-height: 1;
  margin: 0 0 30px;
  position: relative;
  z-index: 1;
}

.minigame-result[data-result="win"] .minigame-result-close {
  display: none;
}

.minigame-result[data-result="fail"] .minigame-result-panel {
  padding-top: 96px;
}

.minigame-result[data-result="fail"] .minigame-result-panel h2 {
  align-items: center;
  display: flex;
  height: 76px;
  justify-content: center;
  left: 0;
  margin: 0;
  padding: 0 76px;
  position: absolute;
  right: 0;
  top: 0;
}

.minigame-result-art {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 132px;
  margin: 0 auto 12px;
  width: 220px;
}

.minigame-result-art.win {
  background-image: none;
  height: 0;
  margin: 0;
}

.minigame-result-art.win::before,
.minigame-result-art.win::after {
  background: url("images/minigame-ui/panel/win_decor.png") center / contain no-repeat;
  content: "";
  height: 112px;
  position: absolute;
  top: 40px;
  width: 112px;
}

.minigame-result-art.win::before {
  left: -30px;
  transform: rotate(-8deg);
}

.minigame-result-art.win::after {
  right: -30px;
  transform: scaleX(-1) rotate(-8deg);
}

.minigame-result-art.fail {
  background-image: url("images/minigame-ui/panel/loose_life_decor.png");
}

.minigame-result-copy {
  color: #8f7a62;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 22px;
}

.minigame-result-reward {
  color: #b49a7d;
  display: grid;
  font-size: 27px;
  font-weight: 900;
  gap: 15px;
  justify-items: center;
  margin: 32px 0 34px;
}

.minigame-result-reward-pill {
  align-items: center;
  background: linear-gradient(#fff7e8, #efd8b9);
  border: 3px solid rgba(201, 170, 132, .75);
  border-radius: 30px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .8),
    0 4px 0 rgba(166, 132, 101, .5),
    0 7px 12px rgba(91, 62, 38, .16);
  color: #bd8b42;
  display: flex;
  font-size: 31px;
  gap: 13px;
  justify-content: center;
  min-height: 66px;
  min-width: 196px;
  padding: 5px 24px 8px 18px;
}

.minigame-result-reward-pill img {
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.minigame-result-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.minigame-result[data-result="win"] .minigame-result-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

.minigame-result-button {
  background: linear-gradient(#f8e9c4, #d6af3b);
  border: 0;
  border-radius: 8px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .45),
    0 5px 0 rgba(143, 104, 38, .9);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  min-height: 70px;
  min-width: 210px;
  padding: 0 20px 6px;
  text-shadow: 0 2px 0 rgba(79, 58, 35, .28);
}

.minigame-result-button.primary {
  background: linear-gradient(#70da67, #37ad4f);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .42),
    0 5px 0 rgba(41, 126, 55, .92);
}

.minigame-result[data-result="win"] .minigame-result-button:not(.primary) {
  background: linear-gradient(#9b75ec, #6747c7);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .38),
    0 5px 0 rgba(74, 48, 153, .92);
}

.minigame-result[data-result="win"] .minigame-result-button:only-child {
  grid-column: 1 / -1;
}

.minigame-result-button.danger {
  background: linear-gradient(#ff756d, #d34442);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .38),
    0 5px 0 rgba(145, 48, 45, .9);
}

.minigame-result-button:disabled {
  cursor: default;
  filter: grayscale(.7);
  opacity: .6;
}

.minigame-settings,
.all-levels-panel {
  align-items: center;
  background: rgba(48, 39, 30, .48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: absolute;
}

.minigame-settings {
  z-index: 8;
}

.minigame-settings-panel,
.all-levels-card {
  background:
    linear-gradient(#ead2bd 0 76px, #fff0d9 76px);
  border: 4px solid rgba(190, 151, 113, .78);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, .5),
    0 16px 34px rgba(62, 42, 25, .32);
  color: #8d7057;
  padding: 38px 34px 34px;
  position: relative;
  text-align: center;
  width: min(450px, 100%);
}

.minigame-settings-panel > img {
  height: 92px;
  margin: -5px auto 5px;
  object-fit: contain;
  width: 92px;
}

.minigame-settings-panel h2,
.all-levels-card h2 {
  color: #856b54;
  font-size: 34px;
  line-height: 1.06;
  margin: 0 0 28px;
}

.minigame-settings-close {
  background: transparent;
  border: 0;
  color: #b08967;
  cursor: pointer;
  font-size: 48px;
  font-weight: 900;
  height: 56px;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 10px;
  width: 56px;
}

.minigame-settings-zoo,
.all-levels-card button {
  background: linear-gradient(#70da67, #37ad4f);
  border: 0;
  border-radius: 10px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .42),
    0 5px 0 rgba(41, 126, 55, .92);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  min-height: 62px;
  min-width: 240px;
  padding: 0 26px 5px;
  text-shadow: 0 2px 0 rgba(79, 58, 35, .28);
}

.all-levels-panel {
  z-index: 310;
}

.all-levels-card {
  padding-top: 94px;
}

.all-levels-stars {
  color: #ffd84b;
  filter: drop-shadow(0 3px 0 #c58f2c);
  font-size: 54px;
  left: 0;
  letter-spacing: 4px;
  position: absolute;
  right: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .55);
  top: 18px;
}

.all-levels-card p {
  color: #8f7a62;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 28px;
}

@media (max-height: 820px) {
  .arrow-minigame-screen {
    gap: 12px;
    padding-top: 112px;
  }

  .arrow-board-shell {
    min-height: 330px;
    padding: 12px;
  }

  .minigame-hint-panel {
    min-height: 116px;
    padding-bottom: 24px;
    padding-top: 22px;
  }

  .minigame-hint-panel strong {
    font-size: 26px;
    margin-bottom: 7px;
  }

  .minigame-hint-panel span {
    font-size: 20px;
  }

  .minigame-booster {
    height: 92px;
  }

  .minigame-map-button {
    bottom: 2px;
    height: 132px;
    width: 158px;
  }

  .minigame-map-button strong {
    font-size: 38px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overscroll-behavior: none;
    width: 100%;
  }

  body {
    align-items: stretch;
    height: 100vh;
    height: 100dvh;
    justify-content: stretch;
    min-height: 100dvh;
    overflow: hidden;
    width: 100vw;
    width: 100dvw;
  }

  .game-shell {
    flex: 0 0 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    max-width: none;
    width: 100vw;
    width: 100dvw;
  }

  .resource-hud {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 8px;
    right: 8px;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
  }

  .resource-pill {
    gap: 4px;
    height: 42px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 4px 6px;
    width: 100%;
  }

  .resource-pill img {
    flex: 0 0 auto;
    height: 26px;
    width: 26px;
  }

  .resource-pill span {
    font-size: clamp(11px, 3.5vw, 16px);
    white-space: nowrap;
  }

  .top-menu-button {
    font-size: 16px;
    min-height: 42px;
    padding: 9px 13px;
    right: 10px;
    top: calc(env(safe-area-inset-top, 0px) + 58px);
  }

  .focus-action-button {
    height: 54px;
    right: 10px;
    top: calc(env(safe-area-inset-top, 0px) + 110px);
    width: 54px;
  }

  .minigame-map-button {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    height: 122px;
    right: 2px;
    width: 146px;
  }

  .minigame-map-button strong {
    font-size: 44px;
  }

  .level-test {
    left: 8px;
    top: calc(env(safe-area-inset-top, 0px) + 58px);
  }

  .dialog-character {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
  }

  .dialog-character-left {
    left: 4px;
  }

  .dialog-character-right {
    right: 4px;
  }

  .dialog-box {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    left: 10px;
    min-height: 104px;
    padding: 12px 14px 16px;
    right: 10px;
  }

  .dialog-speaker {
    font-size: 17px;
    margin-bottom: 5px;
  }

  .dialog-text {
    font-size: 17px;
    line-height: 1.25;
  }

  .dialog-next {
    font-size: 15px;
    min-height: 42px;
    min-width: 88px;
    right: 10px;
  }

  .room-menu {
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .room-menu-panel {
    gap: 12px;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
  }

  .menu-heading {
    gap: 8px;
  }

  .menu-heading h1 {
    font-size: clamp(21px, 6vw, 28px);
  }

  .menu-tab {
    font-size: 14px;
    min-height: 36px;
    padding: 0 10px;
  }

  .room-button {
    font-size: 19px;
    min-height: 54px;
  }

  .dialog-editor-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .dialog-list {
    max-height: 150px;
  }

  .dialog-form {
    max-height: min(42dvh, 320px);
  }

  .editor-toolbar {
    grid-template-columns: minmax(0, 1fr) 44px minmax(72px, auto);
  }

  .condition-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .line-row {
    grid-template-columns: 60px minmax(0, 1fr) 34px;
  }

  .variant-panel {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
    height: clamp(190px, 34dvh, 260px);
  }

  .variant-options {
    bottom: 8px;
    gap: 8px;
    justify-content: flex-start;
    left: 10px;
    overflow-x: auto;
    padding: 4px 4px 8px;
    right: 10px;
    scrollbar-width: none;
  }

  .variant-options::-webkit-scrollbar {
    display: none;
  }

  .variant-option {
    flex: 0 0 clamp(100px, 28vw, 126px);
    height: clamp(164px, 30dvh, 220px);
  }

  .variant-buy {
    font-size: clamp(14px, 4vw, 18px);
    min-width: 0;
    padding: 0 6px 4px 30px;
    width: calc(100% + 4px);
  }

  .variant-close {
    bottom: auto;
    right: 10px;
    top: -58px;
    z-index: 1;
  }

  .arrow-minigame-screen {
    gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 76px) 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
  }

  .minigame-top-panel {
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    height: 66px;
    left: 4px;
    padding: 8px 10px 8px 14px;
    right: 4px;
    top: calc(env(safe-area-inset-top, 0px) + 4px);
  }

  .minigame-level-label {
    font-size: 17px;
  }

  .minigame-top-panel .minigame-stars {
    top: 50%;
  }

  .minigame-stars,
  .minigame-result-stars {
    gap: 2px;
  }

  .minigame-star-slot {
    height: 36px;
    width: 36px;
  }

  .minigame-star-slot img {
    height: 32px;
    width: 34px;
  }

  .minigame-close {
    height: 44px;
    right: 3px;
    width: 44px;
  }

  .minigame-close img {
    height: 36px;
    width: 36px;
  }

  .arrow-board-shell {
    aspect-ratio: 1;
    flex: 0 1 auto;
    height: auto;
    max-height: calc(100dvh - 190px);
    min-height: 0;
    overflow: hidden;
    padding: 4px;
    width: min(100%, calc(100dvh - 190px));
  }

  .arrow-board {
    height: 100%;
    max-height: 100%;
    width: 100%;
  }

  .minigame-booster-row {
    gap: 7px;
    margin-top: auto;
    width: 100%;
  }

  .minigame-booster {
    height: clamp(62px, 10dvh, 82px);
    padding: 7px;
  }

  .minigame-booster img {
    max-height: 54px;
    max-width: 54px;
  }

  .booster-count {
    border-width: 2px;
    font-size: 17px;
    height: 32px;
    right: -5px;
    top: -13px;
    width: 32px;
  }

  .booster-count.ruler-count {
    font-size: 19px;
  }

  .minigame-hint-panel {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
    gap: 8px;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 96px;
    padding: 18px 34px 18px 14px;
    transform: none;
    width: calc(100% - 20px);
  }

  .minigame-hint-icon {
    height: 44px;
    width: 44px;
  }

  .minigame-hint-panel strong {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .minigame-hint-panel span {
    font-size: 13px;
  }

  .minigame-hint-close {
    font-size: 30px;
    height: 36px;
    right: 10px;
    top: 6px;
    width: 36px;
  }

  .minigame-result,
  .minigame-settings,
  .all-levels-panel {
    padding: 12px;
  }

  .minigame-result-panel {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    min-height: 0;
    overflow-y: auto;
    padding: 28px 16px 18px;
    width: min(100%, 420px);
  }

  .minigame-result-panel h2,
  .minigame-settings-panel h2,
  .all-levels-card h2 {
    font-size: clamp(22px, 7vw, 30px);
    margin-bottom: 18px;
  }

  .minigame-result-copy,
  .all-levels-card p {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .minigame-result-art {
    height: 96px;
    width: 160px;
  }

  .minigame-result-art.win::before,
  .minigame-result-art.win::after {
    height: 68px;
    top: 26px;
    width: 68px;
  }

  .minigame-result-art.win::before {
    left: -12px;
  }

  .minigame-result-art.win::after {
    right: -12px;
  }

  .minigame-result-actions {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 12px;
  }

  .minigame-result[data-result="win"] .minigame-result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .minigame-result-button {
    font-size: 15px;
    min-height: 52px;
    min-width: 0;
    padding: 0 8px 4px;
  }

  .minigame-result-reward {
    font-size: 20px;
  }

  .minigame-result-reward-pill {
    font-size: 21px;
    min-height: 52px;
    min-width: 150px;
  }

  .minigame-result-reward-pill img {
    height: 34px;
    width: 34px;
  }

  .minigame-settings-panel,
  .all-levels-card {
    padding: 30px 18px 20px;
  }

  .minigame-settings-panel > img {
    height: 64px;
    width: 64px;
  }

  .minigame-settings-zoo,
  .all-levels-card button {
    font-size: 17px;
    min-height: 52px;
    min-width: 0;
    padding: 0 16px 4px;
    width: 100%;
  }

  .all-levels-stars {
    font-size: 38px;
  }
}

@media (max-width: 380px) {
  .resource-hud {
    left: 6px;
    right: 6px;
  }

  .resource-pill {
    gap: 3px;
    padding: 3px 4px;
  }

  .resource-pill img {
    height: 22px;
    width: 22px;
  }

  .resource-pill span {
    font-size: 11px;
  }

  .menu-heading h1 {
    font-size: 20px;
  }

  .room-menu-panel {
    padding: 12px;
  }
}

@media (max-height: 620px) and (max-width: 900px) {
  .arrow-minigame-screen {
    gap: 5px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 68px);
  }

  .minigame-top-panel {
    height: 58px;
  }

  .arrow-board-shell {
    max-height: calc(100dvh - 154px);
    width: min(100%, calc(100dvh - 154px));
  }

  .minigame-booster {
    height: 56px;
  }

  .minigame-booster img {
    max-height: 42px;
    max-width: 42px;
  }
}

@keyframes cashier-bubble-ready {
  0%,
  100% {
    transform: translateX(-50%) scale(.98);
  }
  50% {
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes purchase-confetti-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(.4);
  }
  12% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--confetti-x, 0px)), calc(-50% + var(--confetti-y, 0px) + 80px))
      rotate(var(--confetti-rotate, 240deg))
      scale(1);
  }
}

@keyframes room-complete-panel-in {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(.82);
  }
  72% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes room-firework-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2);
  }
  16% {
    opacity: 1;
  }
  82% {
    opacity: .95;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--firework-x, 0px)), calc(-50% + var(--firework-y, 0px)))
      scale(.85);
  }
}

@keyframes minigame-spark-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.35);
  }

  12% {
    opacity: 1;
  }

  72% {
    opacity: 1;
    transform:
      translate(
        calc(-50% + var(--spark-x, 0px)),
        calc(-50% + var(--spark-y, 0px))
      )
      scale(1.08);
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--spark-x, 0px)),
        calc(-50% + var(--spark-y, 0px))
      )
      scale(.3);
  }
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@keyframes variant-switch {
  0% {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }

  28% {
    transform: translate3d(0, 0, 0) scale(.9, 1.08);
  }

  58% {
    transform: translate3d(0, 0, 0) scale(1.08, .9);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }
}

@keyframes waterfall-drop {
  0% {
    opacity: 0;
    transform: translate3d(0, -34px, 0) scale(.72, .86);
  }

  22% {
    opacity: .78;
  }

  76% {
    opacity: .56;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 76px, 0) scale(1.08, 1.16);
  }
}

@keyframes pond-foam-drift {
  0% {
    opacity: 0;
    transform: translate3d(-8px, 3px, 0) rotate(-2deg) scale(.96);
  }

  24% {
    opacity: .42;
  }

  70% {
    opacity: .34;
  }

  100% {
    opacity: 0;
    transform: translate3d(10px, -5px, 0) rotate(2deg) scale(1.04);
  }
}

@keyframes stream-run {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(.7, .82);
  }

  18% {
    opacity: .74;
  }

  76% {
    opacity: .46;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 80px), var(--dy, 20px), 0) scale(1.08, .92);
  }
}

@keyframes animal-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }

  50% {
    transform: translate3d(0, 0, 0) scale(1.036, .979);
  }
}

@keyframes animal-sleep-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }

  50% {
    transform: translate3d(0, 0, 0) scale(1.06, .958);
  }
}

@keyframes animal-click-wiggle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1, 1);
  }

  22% {
    transform: translate3d(0, -2px, 0) rotate(-0.625deg) scale(1.03, .985);
  }

  48% {
    transform: translate3d(0, 1px, 0) rotate(.5deg) scale(.99, 1.02);
  }

  72% {
    transform: translate3d(0, -1px, 0) rotate(-0.25deg) scale(1.015, .995);
  }
}

@keyframes animal-wake-nudge {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1, 1);
  }

  35% {
    transform: translate3d(0, -1px, 0) scale(1.018, .992);
  }

  68% {
    transform: translate3d(0, 0, 0) scale(.998, 1.008);
  }
}

@keyframes tail-slow-small {
  0%,
  68%,
  100% {
    transform: rotate(0deg);
  }

  74% {
    transform: rotate(-7.5deg);
  }

  81% {
    transform: rotate(6deg);
  }

  88% {
    transform: rotate(-3deg);
  }
}

@keyframes tail-wide-sharp {
  0%,
  72%,
  100% {
    transform: rotate(0deg);
  }

  76% {
    transform: rotate(18deg);
  }

  81% {
    transform: rotate(-15deg);
  }

  87% {
    transform: rotate(7.5deg);
  }
}

@keyframes ear-small {
  0%,
  76%,
  100% {
    transform: rotate(0deg);
  }

  80% {
    transform: rotate(-6deg);
  }

  84% {
    transform: rotate(7.5deg);
  }

  89% {
    transform: rotate(-3deg);
  }
}

@keyframes ear-wide-sharp {
  0%,
  72%,
  100% {
    transform: rotate(0deg);
  }

  76% {
    transform: rotate(-15deg);
  }

  80% {
    transform: rotate(13.5deg);
  }

  86% {
    transform: rotate(-4.5deg);
  }
}

@keyframes animal-float-icon-rise {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(.72) rotate(var(--icon-start-rotate, 0deg));
  }

  6% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(
        calc(-50% + var(--float-x, -24px)),
        calc(-50% + var(--float-y, -72px)),
        0
      )
      scale(1.16)
      rotate(var(--icon-end-rotate, 8deg));
  }
}
