/* Bitmap controls and live lobby pages. */
#scene-stage {
  width: 100%;
  height: 100%;
  transform: none !important;
  contain: layout paint;
  will-change: auto !important;
}
#sunny-hud.focus-controls {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  color: #fff8e9;
  font-family: "Space Grotesk", sans-serif;
}
#sunny-hud.focus-controls button {
  cursor: pointer;
  pointer-events: auto;
  box-shadow: none;
  text-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.fh-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  pointer-events: none;
  display: block;
  object-fit: contain;
}
#sunny-hud.focus-controls .fh-circle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-width: 0;
  padding: 0;
  border: 1px solid #ebcc8eaa;
  border-radius: 50%;
  background: #11111168;
  color: #fff8e9;
  transition: background 0.15s;
  touch-action: manipulation;
}
#sunny-hud.focus-controls .fh-circle:hover,
#sunny-hud.focus-controls .fh-circle.held {
  background: #f3c75f8c;
  border-color: #ffe2a0;
}
#sunny-hud .fh-circle .fh-icon {
  width: 42px;
  height: 42px;
}
.fh-circle kbd {
  display: none;
}
.fh-topbar {
  position: absolute;
  inset: 14px 18px auto;
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
#sunny-hud .fh-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 186px;
  max-width: 250px;
  padding: 5px 11px 5px 5px;
  border: 1px solid #ebcc8e59;
  border-radius: 34px;
  background: #111111b0;
  color: #fff8e9;
  text-align: left;
}
.fh-profile > img {
  width: 47px;
  height: 47px;
  object-fit: cover;
  border: 1px solid #f3c75f;
  border-radius: 50%;
}
.fh-profile > span {
  min-width: 0;
  flex: 1;
}
.fh-profile strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    700 22px/1 "Barlow Condensed",
    sans-serif;
}
.fh-profile small {
  display: block;
  margin-top: 4px;
  color: #f3c75f;
  font:
    700 10px/1.2 "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.5px;
}
.fh-profile #sunny-xp {
  margin-left: 8px;
  font-size: 9px;
  color: #fff8e9b0;
  letter-spacing: 0;
}
.fh-xp {
  display: block;
  height: 3px;
  background: #ffffff24;
  margin-top: 5px;
  border-radius: 3px;
  overflow: hidden;
}
.fh-xp i {
  display: block;
  height: 100%;
  background: #f3c75f;
}
.fh-wallet {
  display: flex;
  gap: 8px;
  margin-inline: auto;
  pointer-events: auto;
}
#sunny-hud .fh-wallet button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  min-width: 92px;
  padding: 6px 10px;
  border: 1px solid #ebcc8e59;
  border-radius: 23px;
  background: #111111a6;
  color: #fff8e9;
}
.fh-wallet .fh-icon {
  width: 25px;
  height: 25px;
}
.fh-wallet strong {
  font:
    700 20px/1 "Barlow Condensed",
    sans-serif;
}
.fh-wallet button > span {
  color: #f3c75f;
  font-size: 17px;
}
.fh-top-tools {
  display: flex;
  gap: 10px;
}
.fh-minimap {
  position: absolute;
  top: 102px;
  right: 18px;
  pointer-events: auto;
}
.fh-map-open {
  position: relative;
  display: block;
  width: 116px;
  height: 116px;
  padding: 4px;
  border: 1px solid #ebcc8e99;
  border-radius: 50%;
  background: #1111118c;
  color: #fff8e9;
}
.fh-map-open canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.fh-map-open > span {
  position: absolute;
  top: 0;
  left: 47px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #111111d0;
  color: #f3c75f;
  font:
    700 13px "Barlow Condensed",
    sans-serif;
}
.fh-map-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}
#sunny-hud .fh-map-tools .fh-circle {
  width: 48px;
  height: 48px;
}
#sunny-hud .fh-map-tools .fh-icon {
  width: 33px;
  height: 33px;
}
.fh-shortcuts {
  position: absolute;
  right: 24px;
  top: 299px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}
.fh-movement {
  position: absolute;
  left: 18px;
  bottom: 20px;
  width: 198px;
  height: 198px;
  pointer-events: auto;
}
#sunny-hud .fh-movement .fh-circle {
  position: absolute;
  width: 62px;
  height: 62px;
  touch-action: none;
  user-select: none;
}
.fh-move-w {
  top: 0;
  left: 68px;
}
.fh-move-a {
  top: 68px;
  left: 0;
}
.fh-move-d {
  top: 68px;
  left: 136px;
}
.fh-move-s {
  top: 136px;
  left: 68px;
}
.fh-actions {
  position: absolute;
  right: 19px;
  bottom: 22px;
  display: flex;
  gap: 13px;
  pointer-events: auto;
}
#sunny-hud .fh-actions .fh-circle {
  width: 70px;
  height: 70px;
}
#sunny-hud .fh-actions .fh-icon {
  width: 46px;
  height: 46px;
}
#sunny-hud .fh-storage {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #ebcc8e59;
  border-radius: 26px;
  background: #11111180;
  color: #fff8e9;
  font:
    700 16px "Barlow Condensed",
    sans-serif;
}
.fh-storage .fh-icon {
  width: 28px;
  height: 28px;
}
.fh-storage-track {
  width: 58px;
  height: 4px;
  background: #ffffff24;
  border-radius: 3px;
  overflow: hidden;
}
.fh-storage-track i {
  display: block;
  height: 100%;
  background: #f3c75f;
}
.fh-hint {
  display: none !important;
}
.fh-circle:focus-visible,
.fh-map-open:focus-visible,
.fh-profile:focus-visible {
  outline: 3px solid #f3c75f;
  outline-offset: 4px;
}
body.asset-game-active #sunny-dialog {
  background: transparent !important;
  backdrop-filter: none;
}
body.asset-game-active #sunny-dialog .farm-screen,
body.asset-game-active #match-report {
  background: linear-gradient(
    180deg,
    #0a1613b5,
    #0a16134d 48%,
    #0a1613b5
  ) !important;
  backdrop-filter: none;
}
body.asset-game-active :is(#sunny-dialog, #match-report) .farm-feature {
  background: linear-gradient(
    180deg,
    #11111116,
    #11111132 35%,
    #111111b5
  ) !important;
}
body.asset-game-active :is(#sunny-dialog, #match-report) .farm-slide-art {
  background: transparent !important;
}
body.farm-pages-open.asset-game-active
  :is(#sunny-hud, #sunny-inspector, #sunny-placement) {
  visibility: hidden;
  pointer-events: none !important;
}
#farm-overview-ui {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  color: #fff8e9;
  font-family: "Space Grotesk", sans-serif;
}
body.farm-overview :is(#sunny-hud, #sunny-inspector, #sunny-placement) {
  visibility: hidden;
  pointer-events: none !important;
}
#farm-waypoint {
  position: fixed;
  left: 50%;
  bottom: 81px;
  transform: translateX(-50%);
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 6px 7px;
  border: 1px solid #ebcc8e99;
  border-radius: 30px;
  background: #17251edb;
  color: #ffe6a6;
  font:
    600 11px "Space Grotesk",
    sans-serif;
  white-space: nowrap;
}
#farm-waypoint .fh-icon {
  width: 25px;
  height: 25px;
}
#farm-waypoint button {
  border: 0;
  border-radius: 50%;
  background: #ffffff12;
  color: #fff8e9;
  font-size: 19px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .fh-topbar {
    inset: 9px 11px auto;
    gap: 8px;
    flex-wrap: wrap;
  }
  #sunny-hud .fh-profile {
    min-width: 0;
    max-width: calc(100% - 116px);
    flex: 1;
    padding: 4px 9px 4px 4px;
  }
  .fh-profile > img {
    width: 39px;
    height: 39px;
  }
  .fh-profile strong {
    font-size: 20px;
  }
  .fh-top-tools {
    margin-left: auto;
    gap: 7px;
  }
  #sunny-hud .fh-top-tools .fh-circle {
    width: 48px;
    height: 48px;
  }
  #sunny-hud .fh-top-tools .fh-icon {
    width: 33px;
    height: 33px;
  }
  .fh-wallet {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    justify-content: flex-start;
    gap: 6px;
  }
  #sunny-hud .fh-wallet button {
    min-width: 78px;
    height: 34px;
    padding: 4px 8px;
    gap: 5px;
  }
  .fh-wallet strong {
    font-size: 17px;
  }
  .fh-wallet .fh-icon {
    width: 22px;
    height: 22px;
  }
  .fh-minimap {
    top: 115px;
    right: 12px;
  }
  .fh-map-open {
    width: 88px;
    height: 88px;
    padding: 3px;
  }
  .fh-map-open > span {
    left: 33px;
    font-size: 10px;
  }
  .fh-map-tools {
    gap: 6px;
    margin-top: 7px;
  }
  #sunny-hud .fh-map-tools .fh-circle {
    width: 44px;
    height: 44px;
  }
  #sunny-hud .fh-map-tools .fh-icon {
    width: 31px;
    height: 31px;
  }
  .fh-shortcuts {
    top: 274px;
    right: 13px;
    gap: 8px;
  }
  #sunny-hud .fh-shortcuts .fh-circle {
    width: 52px;
    height: 52px;
  }
  #sunny-hud .fh-shortcuts .fh-icon {
    width: 36px;
    height: 36px;
  }
  .fh-movement {
    left: 10px;
    bottom: 15px;
    width: 168px;
    height: 168px;
  }
  #sunny-hud .fh-movement .fh-circle {
    width: 52px;
    height: 52px;
  }
  .fh-move-w {
    left: 58px;
  }
  .fh-move-a {
    top: 58px;
  }
  .fh-move-d {
    left: 116px;
    top: 58px;
  }
  .fh-move-s {
    left: 58px;
    top: 116px;
  }
  .fh-actions {
    right: 12px;
    bottom: 15px;
    gap: 8px;
    flex-direction: column;
  }
  #sunny-hud .fh-actions .fh-circle {
    width: 56px;
    height: 56px;
  }
  #sunny-hud .fh-actions .fh-icon {
    width: 39px;
    height: 39px;
  }
  #sunny-hud .fh-storage {
    bottom: 23px;
    left: 58%;
    padding: 7px 10px;
    font-size: 13px;
  }
  .fh-storage-track {
    display: none;
  }
  .fh-storage .fh-icon {
    width: 24px;
    height: 24px;
  }
  #farm-waypoint {
    bottom: 205px;
    font-size: 10px;
  }
}
@media (max-height: 700px) and (max-width: 600px) {
  .fh-map-tools {
    display: none;
  }
  .fh-shortcuts {
    top: 217px;
    right: 12px;
    display: grid;
    grid-template-columns: 48px 48px;
    gap: 7px;
  }
  #sunny-hud .fh-shortcuts .fh-circle {
    width: 48px;
    height: 48px;
  }
  .fh-shortcuts .fh-circle:last-child {
    grid-column: 2;
  }
  #sunny-hud .fh-storage {
    font-size: 11px;
    padding: 6px 8px;
  }
}
@media (max-height: 700px) and (min-width: 601px) {
  .fh-topbar {
    inset: 9px 12px auto;
    gap: 10px;
    flex-wrap: nowrap;
  }
  #sunny-hud .fh-profile {
    min-width: 150px;
    max-width: 185px;
    flex: initial;
  }
  .fh-profile > img {
    width: 34px;
    height: 34px;
  }
  .fh-profile strong {
    font-size: 19px;
  }
  .fh-profile #sunny-xp {
    display: none;
  }
  .fh-wallet {
    order: 0;
    flex-basis: auto;
    margin-inline: auto;
    gap: 6px;
  }
  #sunny-hud .fh-wallet button {
    height: 34px;
    min-width: 73px;
    padding: 4px 7px;
  }
  .fh-wallet strong {
    font-size: 16px;
  }
  .fh-wallet .fh-icon {
    width: 21px;
    height: 21px;
  }
  #sunny-hud .fh-top-tools .fh-circle {
    width: 48px;
    height: 48px;
  }
  .fh-minimap {
    top: 72px;
    right: 13px;
  }
  .fh-map-open {
    width: 78px;
    height: 78px;
  }
  .fh-map-open > span {
    left: 28px;
  }
  .fh-map-tools {
    display: none;
  }
  .fh-shortcuts {
    top: 164px;
    right: 13px;
    display: grid;
    grid-template-columns: 48px 48px;
    gap: 7px;
  }
  #sunny-hud .fh-shortcuts .fh-circle {
    width: 48px;
    height: 48px;
  }
  #sunny-hud .fh-shortcuts .fh-icon {
    width: 34px;
    height: 34px;
  }
  .fh-shortcuts .fh-circle:last-child {
    grid-column: 2;
  }
  .fh-movement {
    left: 12px;
    bottom: 12px;
    width: 162px;
    height: 162px;
  }
  #sunny-hud .fh-movement .fh-circle {
    width: 50px;
    height: 50px;
  }
  .fh-move-w {
    left: 56px;
  }
  .fh-move-a {
    top: 56px;
  }
  .fh-move-d {
    left: 112px;
    top: 56px;
  }
  .fh-move-s {
    left: 56px;
    top: 112px;
  }
  .fh-actions {
    right: 13px;
    bottom: 12px;
    gap: 10px;
    flex-direction: row;
  }
  #sunny-hud .fh-actions .fh-circle {
    width: 52px;
    height: 52px;
  }
  #sunny-hud .fh-actions .fh-icon {
    width: 37px;
    height: 37px;
  }
  #sunny-hud .fh-storage {
    bottom: 15px;
    left: 50%;
    padding: 6px 10px;
  }
  .fh-storage-track {
    display: none;
  }
  #farm-waypoint {
    bottom: 66px;
  }
}
/* Crisp artwork on a near-opaque charcoal surface remains readable over flowers and roofs. */
#sunny-hud.focus-controls .fh-circle {
  background: linear-gradient(145deg, #30392bf5, #111b18f0);
  border-color: #e9ce95;
  box-shadow:
    0 3px 10px #0005,
    inset 0 1px 1px #fff3 !important;
}
#sunny-hud .fh-circle .fh-icon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 1px 2px #0007);
}
#sunny-hud .fh-actions .fh-icon {
  width: 59px;
  height: 59px;
}
#sunny-hud .fh-map-tools .fh-icon {
  width: 40px;
  height: 40px;
}
#sunny-inspector.field-dock {
  position: fixed;
  z-index: 13;
  top: 102px;
  left: 50%;
  bottom: auto;
  width: 310px;
  max-width: calc(100vw - 28px);
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff8e9;
  animation: none;
  pointer-events: none;
  font-family: "Space Grotesk", sans-serif;
}
.field-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 8px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #e9ce9599;
  border-radius: 32px;
  background: #18251ff2;
  pointer-events: auto;
}
.field-summary > .sunny-icon {
  width: 34px;
  height: 34px;
}
.field-summary > span {
  flex: 1;
  min-width: 0;
}
.field-summary strong {
  display: block;
  font:
    700 21px/1 "Barlow Condensed",
    sans-serif;
}
.field-summary small {
  display: block;
  margin-top: 4px;
  color: #ede0c3;
  font-size: 10px;
  line-height: 1.3;
}
#sunny-inspector.field-dock .fh-circle {
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  padding: 0;
  width: 58px;
  height: 58px;
  border: 1px solid #e9ce95;
  border-radius: 50%;
  background: #263a30;
  color: #fff8e9;
  pointer-events: auto;
  cursor: pointer;
}
#sunny-inspector.field-dock .field-summary .fh-circle {
  width: 34px;
  height: 34px;
  background: #fff8e914;
}
.field-summary .fh-icon {
  width: 25px;
  height: 25px;
}
.fh-close {
  font: 400 26px/1 sans-serif;
}
.field-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: max-content;
  margin: auto;
  padding: 9px 17px;
  border: 1px solid #e9ce95aa;
  border-radius: 45px;
  background: #18251ff0;
  pointer-events: auto;
}
.field-step-arrow {
  font-size: 24px;
  color: #ebcc8e;
  pointer-events: none;
}
.field-steps .fh-icon {
  width: 48px;
  height: 48px;
}
#sunny-inspector.field-dock .current-step {
  background: #f3c75f;
  border-color: #fff0ba;
  box-shadow: 0 0 0 3px #f3c75f26;
}
#sunny-inspector.field-dock .field-step:disabled {
  background: #fff8e90b;
  border-color: #fff8e932;
  cursor: default;
}
.field-step:disabled .fh-icon {
  opacity: 0.28;
  filter: grayscale(1);
}
.field-count {
  position: absolute;
  right: -3px;
  bottom: -2px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 3px;
  border: 1px solid #e9ce95;
  border-radius: 12px;
  background: #173f35;
  color: #fff8e9;
  font:
    700 12px "Barlow Condensed",
    sans-serif;
}
.fm-crop-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.fm-crop-hero > .sunny-icon {
  width: 70px;
  height: 70px;
}
.fm-field-detail p {
  font-size: 12px;
  line-height: 1.6;
}
.fm-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.fm-status-grid > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 12px 4px;
  border: 1px solid #a9b792;
  border-radius: 9px;
  background: #e2e9cf;
}
.fm-status-grid strong {
  font:
    700 30px "Barlow Condensed",
    sans-serif !important;
}
.fm-status-grid span {
  font-size: 10px;
  margin-top: 4px;
}
.fm-field-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
}
.fm-crop-button {
  flex: 1;
  flex-direction: column;
}
.fm-growth {
  height: 7px;
  background: #ced8bd;
  border-radius: 5px;
  overflow: hidden;
}
.fm-growth i {
  display: block;
  height: 100%;
  background: #498464;
}
@media (max-width: 760px) {
  #sunny-hud .fh-top-tools .fh-icon {
    width: 41px;
    height: 41px;
  }
  #sunny-hud .fh-map-tools .fh-icon {
    width: 37px;
    height: 37px;
  }
  #sunny-hud .fh-shortcuts .fh-icon {
    width: 44px;
    height: 44px;
  }
  #sunny-hud .fh-actions .fh-icon {
    width: 47px;
    height: 47px;
  }
  #sunny-hud .fh-movement .fh-icon {
    width: 44px;
    height: 44px;
  }
  #sunny-inspector.field-dock {
    top: 115px;
    left: 12px;
    transform: none;
    width: 242px;
    max-width: calc(100vw - 116px);
  }
  .field-summary {
    gap: 5px;
    padding: 6px;
  }
  .field-summary > .sunny-icon {
    width: 27px;
    height: 27px;
  }
  .field-summary strong {
    font-size: 18px;
  }
  .field-summary small {
    font-size: 9px;
  }
  #sunny-inspector.field-dock .field-summary .fh-circle {
    width: 29px;
    height: 29px;
  }
  .field-summary .fh-icon {
    width: 21px;
    height: 21px;
  }
  .field-steps {
    gap: 6px;
    padding: 8px 10px;
  }
  #sunny-inspector.field-dock .field-step {
    width: 48px;
    height: 48px;
  }
  .field-steps .fh-icon {
    width: 40px;
    height: 40px;
  }
}
@media (max-height: 700px) and (min-width: 601px) {
  #sunny-hud .fh-top-tools .fh-icon,
  #sunny-hud .fh-shortcuts .fh-icon {
    width: 40px;
    height: 40px;
  }
  #sunny-hud .fh-actions .fh-icon {
    width: 44px;
    height: 44px;
  }
  #sunny-hud .fh-movement .fh-icon {
    width: 42px;
    height: 42px;
  }
  #sunny-inspector.field-dock {
    top: 69px;
    width: 266px;
  }
  .field-summary {
    margin-bottom: 5px;
    padding-block: 4px;
  }
  .field-summary strong {
    font-size: 18px;
  }
  .field-steps {
    padding: 6px 12px;
    gap: 9px;
  }
  #sunny-inspector.field-dock .field-step {
    width: 46px;
    height: 46px;
  }
  .field-steps .fh-icon {
    width: 39px;
    height: 39px;
  }
}
@media (max-width: 360px) {
  #sunny-inspector.field-dock .field-step {
    width: 42px;
    height: 42px;
  }
  .field-steps .fh-icon {
    width: 36px;
    height: 36px;
  }
  .field-steps {
    padding: 7px;
    gap: 4px;
  }
  .field-summary > .sunny-icon {
    display: none;
  }
  .field-summary small {
    font-size: 8px;
  }
  .field-summary strong {
    font-size: 17px;
  }
}
@media (max-height: 700px) and (max-width: 600px) {
  #sunny-hud .fh-actions .fh-circle {
    width: 48px;
    height: 48px;
  }
  #sunny-hud .fh-actions .fh-icon {
    width: 41px;
    height: 41px;
  }
}
@media (max-height: 410px) and (min-width: 601px) {
  .fh-shortcuts {
    grid-template-columns: repeat(3, 44px);
    gap: 7px;
  }
  #sunny-hud .fh-shortcuts .fh-circle {
    width: 44px;
    height: 44px;
  }
  #sunny-hud .fh-shortcuts .fh-icon {
    width: 38px;
    height: 38px;
  }
  .fh-shortcuts .fh-circle:last-child {
    grid-column: auto;
  }
}
@media (min-width: 761px) and (min-height: 701px) and (max-height: 800px) {
  .fh-shortcuts {
    display: grid;
    grid-template-columns: 64px 64px;
    gap: 12px;
  }
  .fh-shortcuts .fh-circle:last-child {
    grid-column: 2;
  }
}

/* The clock and home controls reuse the same cream, gold and charcoal HUD. */
#sunny-hud .farm-clock {
  position: absolute;
  left: 20px;
  top: 89px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 9px 14px;
  border: 1px solid #ebcc8e88;
  border-radius: 16px;
  background: #202020ed;
  color: #fff8e9;
  min-width: 153px;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
}
.farm-clock strong {
  font:
    700 15px "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.6px;
}
.farm-clock span {
  color: #f3c75f;
  font-size: 10px;
}
.farm-home-controls {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  justify-content: center;
  white-space: nowrap;
}
#sunny-hud .farm-home-controls button {
  padding: 8px 13px;
  border: 1px solid #ebcc8e88;
  border-radius: 20px;
  background: #202020ed;
  color: #fff8e9;
  font:
    600 11px "Space Grotesk",
    sans-serif;
  min-height: 34px;
}
#sunny-hud .farm-home-controls button:disabled {
  opacity: 0.48;
  cursor: default;
}
#sunny-hud [hidden] {
  display: none !important;
}
body.farm-indoors .fh-minimap,
body.farm-indoors .fh-shortcuts {
  display: none;
}
body.farm-overview .farm-home-controls,
body.farm-pages-open .farm-home-controls {
  visibility: hidden;
}
#farm-sleep-curtain {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: #141c2fe6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.7s,
    visibility 0.7s;
  color: #fff8e9;
}
#farm-sleep-curtain strong {
  font:
    700 42px "Barlow Condensed",
    sans-serif;
  letter-spacing: 4px;
}
#farm-sleep-curtain span {
  font-size: 13px;
  color: #f3c75f;
}
body.farm-sleeping #farm-sleep-curtain {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.farm-day-info {
  max-width: 550px;
  padding: 10px;
}
.farm-day-info p {
  font-size: 13px;
  line-height: 1.8;
}
@media (max-width: 760px) {
  #sunny-hud .farm-clock {
    left: 12px;
    top: 111px;
    min-width: 135px;
    padding: 7px 11px;
  }
  .farm-clock strong {
    font-size: 14px;
  }
  .farm-clock span {
    font-size: 9px;
  }
  .farm-home-controls {
    left: 12px;
    top: 169px;
    bottom: auto;
    transform: none;
    width: 145px;
    flex-direction: column;
    gap: 5px;
  }
  body:not(.farm-indoors) .farm-home-controls {
    display: none;
  }
  #sunny-hud .farm-home-controls button {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 31px;
  }
  body:not(.farm-indoors) #sunny-inspector.field-dock {
    top: 169px;
  }
}
@media (max-height: 700px) and (min-width: 601px) {
  #sunny-hud .farm-clock {
    left: 13px;
    top: 69px;
    min-width: 141px;
    padding: 6px 11px;
  }
  .farm-home-controls {
    left: 50%;
    top: auto;
    bottom: 58px;
    transform: translateX(-50%);
    width: auto;
    flex-direction: row;
  }
}
@media (prefers-reduced-motion: reduce) {
  #farm-sleep-curtain {
    transition: none;
  }
}
/* Main lobby rules are shared with this screen; only map content needs its own sizing. */
#farm-overview-ui {
  position: fixed;
  inset: 0;
  z-index: 20;
  isolation: isolate;
  background: none !important;
  pointer-events: none;
  transition: none;
}
#farm-overview-ui .farm-map-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-size:
    100% 100%,
    var(--map-hole-w, 0px) var(--map-hole-h, 0px);
  mask-position:
    0 0,
    var(--map-hole-x, 0px) var(--map-hole-y, 0px);
  mask-repeat: no-repeat;
  mask-composite: exclude;
}
#farm-overview-ui :is(button, nav, article) {
  pointer-events: auto;
}
.farm-map-view {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
}
#farm-overview-ui .farm-live-map {
  background: none !important;
  cursor: default;
  gap: 10px;
}
#farm-map-stage {
  width: 100%;
  flex: 1 1 0;
  min-height: 80px;
  background: transparent;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: crosshair;
}
#farm-overview-ui .farm-live-map .hero-tile-copy strong {
  font-size: clamp(34px, 4.2vw, 60px);
  margin: 7px 0 10px;
}
#farm-overview-ui .farm-live-map .hero-tile-copy > span {
  gap: 24px;
  font-size: 8px;
}
#farm-overview-ui .farm-map-places {
  gap: 9px;
  cursor: default;
}
#farm-overview-ui .farm-map-places > .tile-symbol {
  font-size: 27px;
  line-height: 1;
}
#farm-overview-ui .farm-map-places > div {
  margin-top: auto;
}
#farm-overview-ui .farm-map-places > div strong {
  font-size: clamp(22px, 2.5vw, 34px);
}
#farm-overview-ui .farm-map-places nav {
  display: grid;
  gap: 0;
}
#farm-overview-ui .farm-map-places nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px;
  padding: 5px 0;
  border: 0;
  border-top: 1px solid #173f3529;
  background: transparent;
  color: inherit;
  font:
    700 19px/1.1 "Barlow Condensed",
    sans-serif;
  text-align: left;
  cursor: pointer;
}
#farm-overview-ui .farm-map-places nav button b {
  font:
    500 18px "Space Grotesk",
    sans-serif;
}
#farm-overview-ui .farm-map-places nav button:hover,
#farm-overview-ui .farm-map-places nav button[aria-pressed="true"] {
  padding-inline: 7px;
  background: #173f3519;
  border-radius: 5px;
}
#farm-overview-ui .farm-map-route {
  gap: 10px;
  cursor: default;
}
#farm-overview-ui .farm-map-route > .tile-symbol {
  font-size: 26px;
  line-height: 1;
}
#farm-overview-ui .farm-map-route strong {
  font-size: clamp(23px, 2.5vw, 34px);
}
#farm-map-status {
  margin: 0;
  min-height: 30px;
  font:
    500 10px/1.5 "Space Grotesk",
    sans-serif;
  text-transform: none;
  color: #e8e4d2;
}
.farm-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font:
    500 8px "Space Grotesk",
    sans-serif;
  text-transform: none;
  color: #e8e4d2;
}
.farm-map-legend > span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.farm-map-legend img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}
#farm-map-clear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  margin-top: auto;
  border: 0;
  border-top: 1px solid #fff8e940;
  background: none;
  color: #f3c75f;
  font:
    700 16px "Barlow Condensed",
    sans-serif;
  cursor: pointer;
}
#farm-map-clear:disabled {
  opacity: 0.4;
  cursor: default;
}
#farm-map-clear:not(:disabled):hover {
  color: #fff8e9;
}
#farm-overview-ui .farm-map-return {
  position: relative;
}
#farm-overview-ui .farm-map-back {
  position: absolute;
  inset: -4px 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
#farm-overview-ui .farm-map-return:hover {
  color: #f3c75f;
}
#farm-overview-ui .tile-pass[aria-pressed="true"],
#farm-overview-ui .tile-rules[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #fff8e9;
}
#farm-map-frame {
  position: fixed;
  pointer-events: none;
  opacity: 0;
}
.map-ready #farm-map-frame {
  opacity: 1;
}
.map-compass {
  position: absolute;
  right: 9px;
  top: 9px;
  color: #fff8e9;
  text-shadow: 0 1px 4px #000;
  font:
    700 11px "Space Grotesk",
    sans-serif;
}
.map-place-labels {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.map-ready .map-place-labels {
  opacity: 1;
}
.map-place-label {
  position: fixed;
  transform: translate(-50%, -100%);
  padding: 3px 5px;
  border: 1px solid #e9ce9599;
  border-radius: 5px;
  background: #202b22e8;
  color: #fff0cc;
  white-space: nowrap;
  font:
    600 8px/1.2 "Space Grotesk",
    sans-serif;
  pointer-events: none;
}
@media (max-width: 760px) {
  #farm-overview-ui .farm-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #farm-overview-ui .farm-live-map {
    grid-column: 1/3;
    grid-row: 1;
  }
  #farm-overview-ui .tile-controls {
    grid-column: 1;
    grid-row: 3;
  }
  #farm-overview-ui .tile-stats {
    grid-column: 2;
    grid-row: 3;
  }
  #farm-overview-ui .tile-ai {
    grid-column: 1;
    grid-row: 2;
  }
  #farm-overview-ui .tile-pass {
    grid-column: 2;
    grid-row: 2;
  }
  #farm-overview-ui .tile-rules {
    grid-column: 1/3;
    grid-row: 4;
  }
  #farm-overview-ui[data-layout="compact"] .bp-header-strip {
    position: static;
    width: 100%;
  }
}
@media (max-width: 760px) {
  #farm-overview-ui {
    overflow: hidden;
  }
  #farm-overview-ui[data-layout] #farm-map-view {
    overflow: auto;
    justify-content: flex-start;
    pointer-events: auto;
    gap: 12px;
    padding: 2px 3px 8px;
    scrollbar-width: thin;
  }
  #farm-overview-ui[data-layout] .farm-map-grid {
    flex: none;
    max-height: none;
    grid-template-rows: 320px 200px 220px 90px;
  }
  #farm-overview-ui .farm-live-map {
    padding: 15px;
  }
  #farm-overview-ui .farm-live-map .hero-tile-copy strong {
    font-size: 38px;
    margin: 5px 0 7px;
  }
  #farm-overview-ui .farm-live-map .hero-tile-copy small {
    font-size: 7px;
  }
  #farm-overview-ui .farm-live-map .hero-tile-copy > span {
    font-size: 7px;
    padding: 0;
  }
  #farm-overview-ui .farm-map-places {
    padding: 13px;
    gap: 7px;
  }
  #farm-overview-ui .farm-map-places > div strong,
  #farm-overview-ui .farm-map-route strong {
    font-size: 24px;
  }
  #farm-overview-ui .farm-map-places > .tile-symbol {
    display: none;
  }
  #farm-overview-ui .farm-map-places nav button {
    font-size: 18px;
    min-height: 32px;
  }
  #farm-overview-ui .farm-map-route {
    gap: 7px;
    padding: 13px;
  }
  #farm-overview-ui .farm-map-route > .tile-symbol {
    display: none;
  }
  #farm-map-status {
    font-size: 9px;
    min-height: 30px;
  }
  #farm-map-clear {
    font-size: 15px;
  }
  .farm-map-legend {
    font-size: 8px;
    gap: 6px;
  }
  .farm-map-legend img {
    width: 17px;
    height: 17px;
  }
  .map-place-label {
    font-size: 7px;
  }
}
@media (max-height: 520px) and (min-width: 761px) {
  #farm-overview-ui .farm-map-places {
    gap: 5px;
    padding: 11px;
  }
  #farm-overview-ui .farm-map-places > .tile-symbol,
  #farm-overview-ui .farm-map-route > .tile-symbol {
    display: none;
  }
  #farm-overview-ui .farm-map-places > div strong,
  #farm-overview-ui .farm-map-route strong {
    font-size: 23px;
  }
  #farm-overview-ui .farm-map-places nav button {
    min-height: 26px;
    padding: 3px 0;
    font-size: 17px;
  }
  #farm-overview-ui .farm-map-route {
    padding: 11px;
    gap: 6px;
  }
  #farm-overview-ui .farm-live-map {
    padding: 12px;
    gap: 5px;
  }
  #farm-overview-ui .farm-live-map .hero-tile-copy strong {
    font-size: 31px;
    margin: 2px 0 3px;
  }
  #farm-overview-ui .farm-live-map .hero-tile-copy > span {
    display: none;
  }
  .farm-map-legend {
    gap: 5px;
    font-size: 7px;
  }
  #farm-map-status {
    font-size: 9px;
    min-height: 26px;
  }
  #farm-map-clear {
    font-size: 14px;
    padding: 5px 0;
  }
}
@media (max-width: 360px) {
  #farm-overview-ui[data-layout] .farm-map-grid {
    grid-template-rows: 320px 220px 240px 90px;
  }
  #farm-overview-ui .farm-map-route strong {
    font-size: 22px;
  }
  #farm-overview-ui .farm-map-route small {
    white-space: normal;
    font-size: 6px;
    letter-spacing: 1px;
  }
  #farm-map-clear {
    font-size: 14px;
    gap: 6px;
  }
}
@media (max-height: 520px) and (min-width: 761px) {
  #farm-overview-ui[data-layout="compact"] .bp-header-strip {
    position: static;
    width: 100%;
  }
  #farm-overview-ui .farm-map-places,
  #farm-overview-ui .farm-map-route {
    padding: 9px;
    gap: 3px;
  }
  #farm-overview-ui[data-layout] .farm-map-places > div strong,
  #farm-overview-ui[data-layout] .farm-map-route strong {
    font-size: 20px;
  }
  #farm-overview-ui .farm-map-places nav button {
    min-height: 22px;
    font-size: 15px;
    padding: 2px 0;
  }
  #farm-overview-ui .farm-map-places nav button b {
    font-size: 15px;
    line-height: 1;
  }
  #farm-overview-ui .farm-map-places small,
  #farm-overview-ui .farm-map-route small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  #farm-map-status {
    font-size: 8px;
    min-height: 24px;
  }
  .farm-map-legend img {
    width: 17px;
    height: 17px;
  }
  #farm-map-clear {
    font-size: 13px;
    padding: 4px 0;
  }
}
