html,
body {
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}
#title-screen {
  --title-edge: max(
    clamp(32px, 4vw, 80px),
    env(safe-area-inset-right),
    env(safe-area-inset-bottom)
  );
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0;
  padding: 32px var(--title-edge) var(--title-edge) 28px;
  background: #000 url("../assets/sunny/loader-background.webp?v=color1")
    center/cover no-repeat;
  overflow-y: auto;
}
#title-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 46% 86% at bottom right,
    #000f 0%,
    #000e 50%,
    #000c 72%,
    #0009 85%,
    #0000 100%
  );
  pointer-events: none;
}
#title-screen .title-copy {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
  width: clamp(250px, 23vw, 440px);
  max-width: 100%;
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
}
#title-screen #loading-progress {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#title-screen #press-start {
  box-sizing: border-box;
  min-height: 70px;
  line-height: 1.3;
  white-space: nowrap;
}
#title-screen #loading-error:empty {
  display: none;
}
@media (max-width: 900px) and (min-width: 601px) {
  #title-screen:before {
    background-image: radial-gradient(
      ellipse 80% 100% at bottom right,
      #000f 0%,
      #000e 50%,
      #000c 72%,
      #0009 85%,
      #0000 100%
    );
  }
  #title-screen .title-copy {
    width: 30vw;
  }
  #title-screen #press-start {
    font-size: clamp(14px, 2.2vw, 19px);
  }
}
@media (max-width: 600px) {
  #title-screen {
    --title-edge: max(
      28px,
      env(safe-area-inset-right),
      env(safe-area-inset-bottom)
    );
    padding-top: 24px;
    padding-left: 28px;
    background-position: 35% center;
  }
  #title-screen:before {
    background-image: radial-gradient(
      ellipse 140% 80% at bottom right,
      #000f 0%,
      #000e 50%,
      #000c 72%,
      #0009 85%,
      #0000 100%
    );
  }
  #title-screen .title-copy {
    width: min(100%, 380px);
    align-self: flex-end;
  }
  #title-screen .title-copy h1 {
    font-size: clamp(36px, 12vw, 64px);
  }
}
@media (max-height: 500px) {
  #title-screen {
    padding-top: 18px;
  }
  #title-screen .title-copy h1 {
    font-size: clamp(28px, 9vh, 50px);
    margin: 12px 0 16px;
  }
  #title-screen .title-tagline {
    margin-bottom: 20px;
  }
}
#scene-root {
  width: 100vw;
  height: 100dvh;
  background: #87cdf3;
}
.scenic-surround {
  display: none;
}
.profile-copy > strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#scene-stage {
  overflow: hidden;
  will-change: transform;
}
#farm-canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
  outline: none;
}
#sunny-hud button:focus-visible,
.sunny-button:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid #fff3b4;
  outline-offset: 3px;
}
.sunny-modal-card {
  width: min(780px, 100%);
  max-height: min(var(--dialog-height, 570px), calc(100dvh - 24px));
  background: linear-gradient(135deg, #345b30, #20422d);
  border: 3px solid #eebd67;
  color: #fff3cd;
  box-shadow:
    0 15px 50px #37241666,
    inset 0 0 0 2px #fff1a43d;
  animation: panel-in 0.18s ease-out both;
}
.sunny-modal-card > header {
  background: linear-gradient(115deg, #517837, #294c2d);
  padding: 11px 17px;
  border-bottom: 2px solid #dba554;
  position: relative;
}
.sunny-modal-card > header:after {
  content: "";
  position: absolute;
  right: 63px;
  top: 6px;
  width: 32px;
  height: 36px;
  background: none center/contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
.sunny-modal-card h2 {
  font-family: Lilita, Fredoka, sans-serif !important;
  font-size: 25px;
  letter-spacing: 0.3px !important;
}
.sunny-modal-card > header > .sunny-icon {
  width: 35px;
  height: 35px;
}
.sunny-modal-body {
  padding: 12px;
  max-height: calc(2 * var(--item-row, 176px) + var(--grid-gap, 12px) + 24px);
  scrollbar-width: thin;
  scrollbar-color: #e5bd72 #284a2e;
  overflow: auto;
}
.sunny-modal-body:has(.market-tabs) {
  max-height: calc(2 * var(--item-row, 176px) + var(--grid-gap, 12px) + 70px);
}
#sunny-hud:not(.compact-hud) .sunny-menu {
  left: auto;
  right: 250px;
}
#sunny-hud.compact-hud .sunny-menu {
  right: 120px;
}
.sunny-modal-card > footer {
  padding: 9px 15px;
  background: #294a2d;
  border-top: 1px solid #c29a53;
  color: #ffe9b3;
  font-size: 12px;
}
.sunny-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: var(--item-row, 176px);
  gap: var(--grid-gap, 12px);
}
.sunny-item-card {
  box-sizing: border-box;
  height: var(--item-row, 176px);
  padding: 9px 10px;
  gap: 5px;
  border: 1px solid #bcaa65;
  background: linear-gradient(150deg, #526d35, #33542e);
  border-radius: 15px;
  box-shadow: inset 0 1px #f8f1b121;
  color: #fff0c6;
  overflow: hidden;
}
.sunny-item-card > .sunny-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.sunny-item-card > .sunny-prop-preview {
  height: 64px;
  max-width: 138px;
}
.sunny-item-card > strong {
  font-size: 16px;
  line-height: 1.15;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sunny-item-card > p {
  font-size: 12px;
  line-height: 1.35;
  max-height: 35px;
  flex-shrink: 0;
}
.sunny-item-card .card-actions {
  gap: 4px;
  flex-wrap: nowrap;
}
.sunny-item-card .card-actions .sunny-button {
  padding: 5px 7px;
  min-height: 29px;
  font-size: 11px;
  white-space: nowrap;
}
.sunny-item-card .card-actions .sunny-icon {
  width: 18px;
  height: 18px;
}
.sunny-button {
  border: 1px solid #e4b96a;
  background: linear-gradient(#719446, #3a6430);
  color: #fff5ce;
  border-radius: 11px;
  min-height: 34px;
  box-shadow:
    inset 0 1px #fff3b64d,
    0 2px 3px #15281766;
  transition:
    filter 0.12s,
    transform 0.12s;
}
.sunny-button:active:not(:disabled) {
  transform: translateY(1px);
}
.sunny-button:disabled {
  opacity: 0.48;
}
.card-note {
  color: #e8d6a8;
  font-size: 11px;
}
.cost-item {
  color: #ffe39e;
  font-size: 12px;
}
.dialog-close {
  background: #426634;
  color: #fff2c4;
  border: 1px solid #e6b567;
  font-size: 23px;
  width: 32px;
  height: 32px;
}
.market-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  position: sticky;
  top: -12px;
  z-index: 2;
  background: #28472d;
  padding: 8px 0;
}
.market-tabs .sunny-button {
  flex: 1;
  font-size: 12px;
  padding: 6px 5px;
}
.market-tabs [aria-pressed="true"] {
  background: linear-gradient(#e6bd66, #ac7c37);
  color: #29452c;
}
.settings-fields label {
  font-size: 15px;
}
.settings-saves {
  margin-top: 15px;
}
.settings-saves h3 {
  font-size: 18px;
}
.building-detail {
  gap: 18px;
}
.building-detail > .sunny-prop-preview {
  height: 170px;
}
.building-detail h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.building-detail p {
  font-size: 14px;
}
.profile-form > label {
  font-size: 15px;
}
.name-field {
  font-size: 15px;
}
.profile-form > img {
  width: 74px;
  height: 90px;
}
.profile-form input,
.name-field input {
  background: #fff3cb;
  border-color: #d6b36b;
}
.farm-guide {
  gap: 10px;
}
.farm-guide p {
  font-size: 13px;
}
.farm-guide .sunny-icon {
  width: 32px;
  height: 32px;
}
.camera-preview canvas {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.large-farm-map {
  max-height: 350px;
  max-width: 100%;
  margin: auto;
  aspect-ratio: 1672/941;
}
#sunny-inspector {
  box-sizing: border-box;
  width: 324px;
  padding: 12px;
  border: 2px solid #e9bd6b;
  border-radius: 19px;
  background: linear-gradient(140deg, #486d34f5, #21482ff5);
  box-shadow:
    0 7px 25px #41281959,
    inset 0 0 0 1px #fff3bf29;
  color: #fff2ce;
  z-index: 25;
  animation: panel-in 0.18s ease-out both;
}
.inspector-heading > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.inspector-heading strong {
  font-family: Lilita, Fredoka, sans-serif;
  font-size: 21px;
}
.inspector-heading small {
  font-size: 10px;
  color: #e4d7a4;
}
.inspector-heading > .sunny-icon {
  width: 36px;
  height: 36px;
}
.inspector-heading button {
  width: 28px;
  height: 28px;
  border: 1px solid #caa85b;
  border-radius: 9px;
  font-size: 19px;
  background: #315831;
}
.crop-statuses {
  margin: 8px 0;
}
.crop-statuses > span {
  font-size: 20px;
}
.crop-statuses small {
  font-size: 10px;
}
.crop-actions {
  gap: 7px;
}
.crop-actions .sunny-button {
  min-height: 44px;
  padding: 5px 6px;
  gap: 3px;
  font-size: 12px;
}
.crop-actions .sunny-icon {
  width: 26px;
  height: 26px;
}
.crop-hint {
  font: 500 12px/1.2 Fredoka;
  margin: 9px 0 3px;
  text-align: center;
  color: #ffdf91;
}
.inspector-seeds {
  font-size: 10px;
  margin-top: 3px;
}
.closing .sunny-modal-card,
#sunny-inspector.closing {
  animation: panel-out 0.15s ease-in both;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes panel-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
}
#match-report {
  position: fixed;
  inset: 0;
  z-index: 85;
  box-sizing: border-box;
  padding: clamp(15px, 3vh, 35px) clamp(18px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  background:
    linear-gradient(120deg, #254c31f7, #103e30f8),
    url("../assets/sunny/loader-background.webp") center/cover;
  color: #fff2d0;
  overflow: auto;
  font-family: Fredoka, sans-serif;
  animation: panel-in 0.18s ease-out both;
}
#match-report.closing {
  animation: panel-out 0.15s ease-in both;
}
#match-report :is(h1, span, strong, small, p, button) {
  font-family: Fredoka, sans-serif;
  letter-spacing: normal;
  font-style: normal;
}
#match-report .report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e8d198;
  flex-shrink: 0;
  font-size: 13px;
}
#match-report .brand-ball {
  width: 35px;
  height: 35px;
  border: 2px solid #efc372;
  background: #355d33;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffdfa0;
}
#match-report .report-scoreboard {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
  padding: 18px 0;
  border-bottom: 1px solid #c6aa6266;
}
#match-report h1 {
  font-family: Lilita, Fredoka, sans-serif;
  font-size: clamp(27px, 4vw, 54px);
  margin: 4px 0;
  color: #fff5da;
  line-height: 1.08;
}
#match-report .eyebrow {
  font-size: 12px;
  color: #e9cf8b;
}
#match-report .report-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  background: none;
  color: #f7df9b;
  padding: 0;
  min-width: 160px;
}
#match-report .report-score > strong {
  font-size: 35px;
  color: #fff1ba;
  line-height: 1.1;
}
#match-report .report-score > span,
#match-report .report-score > small {
  font-size: 13px;
}
#match-report .report-columns {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 15px;
  min-height: 0;
  flex: 0 1 auto;
  max-height: 400px !important;
}
#match-report .report-player,
#match-report .report-center {
  background: linear-gradient(150deg, #3a6237, #214930);
  border: 1px solid #cba864;
  border-radius: 18px;
  padding: 15px;
  overflow: auto;
  color: #fff0c5;
}
#match-report .panel-heading,
#match-report .report-center-heading {
  font-size: 13px;
  color: #eed48b;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #caa46366;
  margin-bottom: 8px;
}
#match-report .report-center-heading span:last-child {
  font-size: 9px;
  color: #d7e5b6;
}
#match-report .report-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #b9a66533;
  padding: 11px 0;
  font-size: 13px;
}
#match-report .report-stat-row strong {
  color: #ffe4a0;
  font-size: 16px;
}
#report-description {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: #e5dcb4;
}
.report-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.report-field > .sunny-icon {
  width: 32px;
  height: 32px;
}
.report-field > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-field strong {
  font-size: 14px;
}
.report-field small {
  font-size: 11px;
  color: #d6d9ab;
}
#match-report .report-actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  flex-shrink: 0;
}
#match-report .report-actions > button {
  border: 1px solid #e3b96e;
  border-radius: 13px;
  background: linear-gradient(#5c803d, #315d31);
  padding: 11px 18px;
  color: #fff2c6;
  font-size: 14px;
  cursor: pointer;
  min-height: 42px;
  box-shadow: inset 0 1px #ffffdf35;
}
#match-report #btn-resume {
  background: linear-gradient(#f0d08a, #c9974c);
  color: #29412a;
  font-weight: 600;
  flex: 1;
}
#match-report .report-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #d3c593;
  padding-top: 5px;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .sunny-modal-card {
    width: min(680px, 100%);
  }
  #match-report .report-columns {
    gap: 10px;
  }
  #match-report .report-player,
  #match-report .report-center {
    padding: 11px;
  }
  .sunny-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .sunny-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sunny-modal-card {
    width: 100%;
  }
  #match-report .report-columns {
    grid-template-columns: 1fr 1fr;
    overflow: auto;
  }
  #match-report .report-center {
    grid-column: 1/-1;
    grid-row: 2;
  }
  #match-report .report-scoreboard {
    gap: 8px;
  }
  #match-report .report-score {
    min-width: 90px;
  }
  .market-tabs .sunny-button {
    font-size: 10px;
  }
}
@media (max-width: 600px) and (min-height: 541px) {
  #sunny-hud.compact-hud .sunny-resources {
    top: 136px;
  }
  #sunny-hud.compact-hud .sunny-resource {
    width: 108px;
  }
  #sunny-hud.compact-hud .sunny-resource:nth-child(n + 2) {
    width: 86px;
  }
  #sunny-hud.compact-hud .sunny-resource > strong {
    font-size: 14px !important;
  }
  #sunny-hud.compact-hud .sunny-storage {
    top: 190px;
    bottom: auto;
    left: 8px;
    transform: none;
    width: 250px;
    height: 65px;
  }
  #sunny-hud.compact-hud .sunny-profile {
    width: min(214px, calc(100vw - 178px));
  }
}
@media (max-height: 540px) {
  #sunny-dialog {
    padding: 10px;
    background: #281c1840;
    backdrop-filter: blur(2px);
  }
  .sunny-modal-card > header {
    padding: 7px 12px;
  }
  .sunny-modal-card h2 {
    font-size: 20px;
  }
  .sunny-modal-card > header > .sunny-icon {
    width: 25px;
    height: 25px;
  }
  .dialog-close {
    width: 27px;
    height: 27px;
    font-size: 19px;
  }
  .sunny-modal-body {
    padding: 9px;
    max-height: calc(2 * var(--item-row, 112px) + var(--grid-gap, 9px) + 18px);
  }
  .sunny-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sunny-item-card {
    padding: 6px 7px;
    gap: 3px;
  }
  .sunny-item-card > .sunny-icon {
    width: 27px;
    height: 27px;
  }
  .sunny-item-card > .sunny-prop-preview {
    height: 33px;
  }
  .sunny-item-card > strong {
    font-size: 12px;
  }
  .sunny-item-card > p {
    font-size: 10px;
    line-height: 1.25;
    max-height: 26px;
  }
  .sunny-item-card .card-actions .sunny-button {
    font-size: 10px;
    padding: 3px 6px;
    min-height: 34px;
    min-width: 44px;
  }
  .sunny-item-card .card-actions .sunny-icon {
    width: 14px;
    height: 14px;
  }
  .cost-item {
    font-size: 10px;
  }
  .cost-item .sunny-icon {
    width: 15px;
    height: 15px;
  }
  .card-note {
    font-size: 9px;
  }
  .sunny-modal-card > footer {
    padding: 6px 10px;
    font-size: 10px;
  }
  .market-tabs {
    padding: 3px 0;
    margin: 0 0 7px;
    top: -9px;
  }
  .market-tabs .sunny-button {
    min-height: 31px;
    font-size: 10px;
  }
  #sunny-inspector {
    width: 224px;
    padding: 6px;
    border-radius: 14px;
    font-size: 10px;
    line-height: 1.1;
  }
  .inspector-heading strong {
    font-size: 15px;
  }
  .inspector-heading small {
    font-size: 8px;
  }
  .inspector-heading > .sunny-icon {
    width: 22px;
    height: 22px;
  }
  .inspector-heading button {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }
  .crop-statuses {
    margin: 3px 0;
  }
  .crop-statuses > span {
    font-size: 14px;
    line-height: 1.1;
  }
  .crop-statuses small {
    font-size: 8px;
  }
  .crop-actions {
    gap: 5px;
  }
  .crop-actions .sunny-button {
    min-height: 29px;
    padding: 2px;
    gap: 2px;
    font-size: 9px;
    line-height: 1.1;
  }
  .crop-actions .sunny-icon {
    width: 18px;
    height: 18px;
  }
  .crop-hint {
    font-size: 9px;
    line-height: 1.1;
    margin: 4px 0 2px;
  }
  .inspector-seeds {
    font-size: 8px;
    line-height: 1.1;
    margin-top: 2px;
  }
  .building-detail > .sunny-prop-preview {
    height: 110px;
  }
  .building-detail h3 {
    font-size: 18px;
  }
  .building-detail p {
    font-size: 12px;
  }
  .building-detail .sunny-button {
    font-size: 12px;
  }
  .camera-preview {
    max-width: 390px;
    margin: auto;
  }
  .camera-options {
    margin-top: 9px;
  }
  .camera-options .sunny-button {
    font-size: 11px;
    padding: 5px 9px;
  }
  .large-farm-map {
    max-width: 450px;
    max-height: 230px;
  }
  #match-report {
    padding: 12px 22px;
    gap: 8px;
  }
  #match-report .report-brand {
    font-size: 10px;
  }
  #match-report .brand-ball {
    width: 25px;
    height: 25px;
  }
  #match-report .report-scoreboard {
    padding: 3px 0 9px;
  }
  #match-report h1 {
    font-size: 29px;
  }
  #match-report .report-score > strong {
    font-size: 23px;
  }
  #match-report .report-score > span,
  #match-report .report-score > small {
    font-size: 10px;
  }
  #match-report .eyebrow {
    font-size: 9px;
  }
  #match-report .report-columns {
    max-height: 205px !important;
    gap: 9px;
  }
  #match-report .panel-heading,
  #match-report .report-center-heading {
    font-size: 10px;
    padding-bottom: 5px;
    margin-bottom: 3px;
  }
  #match-report .report-stat-row {
    padding: 6px 0;
    font-size: 10px;
  }
  #match-report .report-stat-row strong {
    font-size: 12px;
  }
  #report-description {
    font-size: 10px;
    line-height: 1.25;
    margin-bottom: 5px;
  }
  .report-field {
    padding: 3px 0;
    gap: 6px;
  }
  .report-field > .sunny-icon {
    width: 22px;
    height: 22px;
  }
  .report-field strong {
    font-size: 10px;
  }
  .report-field small {
    font-size: 8px;
  }
  #match-report .report-actions {
    padding-top: 2px;
    gap: 7px;
  }
  #match-report .report-actions > button {
    padding: 7px 12px;
    font-size: 11px;
    min-height: 31px;
  }
  #match-report .report-footer {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sunny-modal-card,
  #match-report,
  #sunny-inspector,
  .closing .sunny-modal-card,
  #match-report.closing {
    animation: none !important;
  }
}
#sunny-hud {
  --edge-left: max(10px, env(safe-area-inset-left));
  --edge-right: max(10px, env(safe-area-inset-right));
  --edge-top: max(10px, env(safe-area-inset-top));
  --edge-bottom: max(16px, env(safe-area-inset-bottom));
}
#sunny-hud .hud-design {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
#sunny-hud:not(.compact-hud) .sunny-profile {
  left: var(--edge-left);
  top: var(--edge-top);
  transform: scale(var(--hud-scale));
  transform-origin: top left;
}
#sunny-hud:not(.compact-hud) .sunny-resources {
  left: 50%;
  top: calc(var(--edge-top) + 10px);
  transform: translateX(-50%) scale(var(--hud-scale));
  transform-origin: top center;
}
#sunny-hud:not(.compact-hud) .sunny-help {
  left: var(--edge-left);
  top: calc(var(--edge-top) + 173px * var(--hud-scale));
  transform: scale(var(--hud-scale));
  transform-origin: top left;
}
#sunny-hud:not(.compact-hud) .sunny-menu {
  right: calc(var(--edge-right) + 228px * var(--hud-scale));
  top: calc(var(--edge-top) + 4px);
  transform: scale(var(--hud-scale));
  transform-origin: top right;
}
#sunny-hud:not(.compact-hud) .sunny-minimap {
  right: var(--edge-right);
  top: var(--edge-top);
  transform: scale(var(--hud-scale));
  transform-origin: top right;
}
#sunny-hud:not(.compact-hud) .sunny-shortcuts {
  right: calc(var(--edge-right) + 5px);
  top: calc(var(--edge-top) + 245px * var(--hud-scale));
  transform: scale(var(--hud-scale));
  transform-origin: top right;
}
#sunny-hud:not(.compact-hud) .sunny-movement {
  left: var(--edge-left);
  bottom: var(--edge-bottom);
  width: 299px;
  height: 295px;
  transform: scale(var(--hud-scale));
  transform-origin: bottom left;
}
#sunny-hud:not(.compact-hud) .sunny-actions {
  right: var(--edge-right);
  bottom: var(--edge-bottom);
  transform: scale(var(--hud-scale));
  transform-origin: bottom right;
}
#sunny-hud:not(.compact-hud) .sunny-storage {
  left: 50%;
  bottom: var(--edge-bottom);
  transform: translateX(-50%) scale(var(--hud-scale));
  transform-origin: bottom center;
}
#sunny-hud.compact-hud .sunny-profile {
  left: var(--edge-left);
  top: var(--edge-top);
  width: var(--profile-width);
  height: var(--profile-height);
}
#sunny-hud.compact-hud .sunny-minimap {
  right: var(--edge-right);
  top: var(--edge-top);
}
#sunny-hud.compact-hud .sunny-menu {
  right: calc(var(--edge-right) + 120px);
  top: calc(var(--edge-top) + 3px);
}
#sunny-hud.compact-hud .sunny-shortcuts {
  right: var(--edge-right);
  top: calc(var(--edge-top) + 128px);
}
#sunny-hud.compact-hud .sunny-movement {
  left: var(--edge-left);
  bottom: var(--edge-bottom);
  width: 168px;
  height: 176px;
  transform: scale(var(--move-scale));
  transform-origin: bottom left;
}
#sunny-hud.compact-hud .sunny-actions {
  right: var(--edge-right);
  bottom: var(--edge-bottom);
  gap: 2px;
}
#sunny-hud.compact-hud .sunny-actions .sunny-round {
  width: var(--action-size);
  height: calc(var(--action-size) + 8px);
}
#sunny-hud.compact-hud .sunny-storage {
  bottom: var(--edge-bottom);
}
#sunny-inspector {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
@media (max-width: 760px) {
  #sunny-hud.compact-hud .sunny-resources {
    left: var(--edge-left);
    top: calc(var(--edge-top) + var(--profile-height) + 8px);
    gap: 2px;
  }
  #sunny-hud.compact-hud .sunny-resource {
    width: 108px;
    height: 40px;
  }
  #sunny-hud.compact-hud .sunny-resource:nth-child(n + 2) {
    width: 86px;
  }
  #sunny-hud.compact-hud .sunny-resource > strong {
    font-size: 14px !important;
  }
  #sunny-hud.compact-hud .sunny-storage {
    width: 225px;
    height: 60px;
  }
}
@media (max-width: 760px) and (min-height: 541px) {
  #sunny-hud.compact-hud .sunny-resources {
    top: calc(var(--edge-top) + 133px);
  }
  #sunny-hud.compact-hud .sunny-storage {
    left: var(--edge-left);
    top: auto;
    bottom: calc(var(--edge-bottom) + 176px * var(--move-scale) + 8px);
    transform: none;
  }
  #sunny-hud.compact-hud.crop-active .sunny-storage {
    display: none;
  }
  #sunny-inspector {
    width: calc(100vw - 84px);
    padding: 7px;
    font-size: 11px;
    line-height: 1.2;
  }
  #sunny-inspector .inspector-heading strong {
    font-size: 16px;
  }
  #sunny-inspector .inspector-heading small {
    font-size: 9px;
  }
  #sunny-inspector .inspector-heading > .sunny-icon {
    width: 25px;
    height: 25px;
  }
  #sunny-inspector .crop-statuses {
    margin: 4px 0;
  }
  #sunny-inspector .crop-statuses > span {
    font-size: 17px;
  }
  #sunny-inspector .crop-statuses small {
    font-size: 9px;
  }
  #sunny-inspector .crop-actions {
    gap: 4px;
  }
  #sunny-inspector .crop-actions .sunny-button {
    min-height: 34px;
    padding: 3px;
    font-size: 10px;
    gap: 2px;
  }
  #sunny-inspector .crop-actions .sunny-icon {
    width: 21px;
    height: 21px;
  }
  #sunny-inspector .crop-hint {
    font-size: 10px;
    margin: 4px 0;
  }
  #sunny-inspector .inspector-seeds {
    font-size: 9px;
  }
}
@media (max-width: 760px) and (max-height: 540px) {
  #sunny-hud.compact-hud .sunny-storage {
    left: var(--storage-left);
    width: 200px;
    height: 53px;
  }
}
@media (max-width: 760px) and (max-height: 540px) {
  #sunny-hud.compact-hud.crop-active .sunny-storage {
    display: none;
  }
}
@media (max-width: 350px) and (min-height: 541px) {
  #sunny-hud.compact-hud .sunny-resource {
    width: 86px;
  }
  #sunny-hud.compact-hud .sunny-resource:nth-child(n + 2) {
    width: 64px;
  }
}
@media (max-height: 540px) {
  #sunny-hud.compact-hud .sunny-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 44px);
    gap: 3px;
  }
  #sunny-hud.compact-hud .sunny-shortcuts .sunny-round {
    width: 44px;
    height: 44px;
  }
  #sunny-inspector {
    font-size: 11px;
  }
  #sunny-inspector .crop-actions .sunny-button {
    font-size: 10px;
    min-height: 34px;
  }
}
@media (max-height: 350px) {
  #sunny-hud.compact-hud .sunny-shortcuts {
    grid-template-columns: repeat(3, 44px);
  }
}
@media (max-width: 360px) {
  #sunny-hud.compact-hud .sunny-profile .profile-copy > strong {
    font-size: 12px;
  }
  #sunny-hud.compact-hud .sunny-profile .profile-level {
    font-size: 10px;
  }
  #sunny-hud.compact-hud .sunny-profile .profile-copy > small {
    font-size: 7px;
  }
  #sunny-hud.compact-hud .sunny-profile .xp-track {
    height: 5px;
  }
  #sunny-hud.compact-hud .sunny-actions > .sunny-round:after {
    font-size: 9px;
    padding: 2px 4px;
  }
}
@media (pointer: coarse) {
  #sunny-inspector .crop-actions .sunny-button {
    min-height: 44px;
  }
}
