* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #f5efdf;
  color: #355e51;
  font: 15px "Segoe UI", sans-serif;
}
button,
a,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 1px solid #b8c6ae;
  border-radius: 12px;
  background: #fff9e9;
  color: #355e51;
  min-height: 44px;
  padding: 9px 13px;
  cursor: pointer;
}
button:hover {
  background: #e4edcc;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #d78e66;
  outline-offset: 2px;
}
button:disabled {
  opacity: .45;
  cursor: default;
}
#farm {
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}
header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 65px;
  padding: 8px 12px;
  background: #fff8e8e8;
  border-bottom: 1px solid #d8dfc6;
  z-index: 2;
}
header a {
  color: #355e51;
  text-decoration: none;
  min-height: 44px;
  display: grid;
  place-items: center;
}
header div {
  margin-right: auto;
}
header small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
}
header button {
  padding: 8px;
}
#world {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: block;
  touch-action: none;
}
#caption {
  position: absolute;
  bottom: 35px;
  left: 12px;
  right: 12px;
  background: #fff9eade;
  border-radius: 12px;
  padding: 10px 14px;
  pointer-events: none;
  text-align: center;
  max-width: 620px;
  margin: auto;
  font-size: 13px;
}
#save-status {
  position: absolute;
  bottom: 9px;
  left: 12px;
  font-size: 10px;
  color: #536c5d;
}
dialog {
  border: 1px solid #c3caaa;
  border-radius: 20px;
  background: #f8f1df;
  color: #355e51;
  max-height: 82dvh;
  width: min(590px, calc(100vw - 24px));
  padding: 16px;
  box-shadow: 0 20px 90px #264b4a44;
}
dialog::backdrop {
  background: #31544a55;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #f8f1df;
  z-index: 1;
}
h2 {
  font: 25px Georgia;
  margin: 4px 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
}
.card {
  background: #fff9eb;
  border: 1px solid #d7dbc4;
  padding: 10px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.card svg {
  width: 58px;
  height: 58px;
}
.card small {
  text-align: center;
  color: #68816d;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.card button {
  width: 100%;
  font-size: 12px;
}
.muted {
  font-size: 12px;
  color: #6c806b;
}
input[type=number] {
  width: 70px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #bbc7ab;
  background: #fff9eb;
  padding: 7px;
}
select {
  min-height: 44px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #bbc7ab;
  padding: 7px;
}
#tile-menu {
  position: absolute;
  background: #fff8e8;
  border: 1px solid #bdcaaa;
  border-radius: 14px;
  padding: 8px;
  z-index: 4;
  width: 185px;
  box-shadow: 0 10px 30px #355e5133;
}
#tile-menu button {
  display: block;
  width: 100%;
  margin: 3px 0;
  text-align: left;
}
#tile-menu small {
  display: block;
  font-size: 10px;
  padding: 5px;
}
.offer {
  border: 1px solid #ced3bd;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
}
#feedback {
  font-size: 13px;
  min-height: 20px;
}
.hero-home {
  height: auto;
  overflow: auto;
  padding: 24px;
  background: #f7f1e4;
}
.hero-home main {
  max-width: 950px;
  margin: auto;
}
.hero-home nav {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px 0 25px;
}
.hero-home .hero {
  background: #e9ead5;
  border-radius: 24px;
  padding: 40px;
}
.hero-home h1 {
  font: 38px Georgia;
}
.hero-home .cta {
  display: inline-block;
  background: #3c8f84;
  color: white;
  padding: 18px 30px;
  border-radius: 14px;
  text-decoration: none;
}
.hero-home .tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 25px;
}
.hero-home .tiles article {
  padding: 30px;
  background: #fff7e9;
  border-radius: 20px;
}
@media (max-width: 420px) {
  header {
    gap: 5px;
    padding: 7px;
  }
  header b {
    font-size: 16px;
  }
  header button {
    font-size: 12px;
    padding: 7px;
  }
  #wallet {
    font-size: 12px;
  }
  #caption {
    font-size: 12px;
    bottom: 30px;
  }
  .hero-home .hero {
    padding: 20px;
  }
  .hero-home .tiles {
    grid-template-columns: 1fr;
  }
}
.item-voice {
  font-size: .75rem;
  min-height: 44px;
}
.item-audio-status {
  position: absolute;
  bottom: 6px;
  left: 12px;
  right: 12px;
  font-size: .75rem;
  pointer-events: none;
  color: #31584a;
  background: #ffffffe8;
  border-radius: 8px;
  margin: 0;
  padding: 3px 8px;
  max-width: 520px;
}
.item-audio-status:empty {
  display: none;
}
#panel-audio-status:empty {
  display: none;
}
.item-audio-status {
  bottom: 62px;
}
