/* Compact storefront: six offers per page, fitted to the available viewport. */
#game #window#window:has(.mv-store) {
  position: fixed !important;
  inset: 0 !important;
  translate: none !important;
  transform: none !important;
  margin: auto !important;
  box-sizing: border-box;
  display: block !important;
  width: min(850px, calc(100vw - 16px)) !important;
  height: min(530px, calc(100dvh - 16px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 3px solid #84633b !important;
  border-radius: 15px !important;
  background: #faf4e3 !important;
  box-shadow: 0 20px 80px #122b2470;
}
#game #window#window:has(.mv-store)[hidden] {
  display: none !important;
}
#game #window#window:has(.mv-store)::backdrop {
  background: #132e27ba;
}
#game #window#window:has(.mv-store) > .title {
  position: relative;
  box-sizing: border-box;
  min-height: 0 !important;
  height: 44px !important;
  padding: 8px 55px !important;
  border: 0 !important;
  border-bottom: 2px solid #d5b77a !important;
  background: linear-gradient(100deg, #795435, #a57a4d 48%, #88603c) !important;
  color: #fff5d4 !important;
  font:
    700 21px Georgia,
    serif !important;
  text-shadow: 0 2px 2px #49351f !important;
}
#game #window#window:has(.mv-store) .title:after,
#game #window#window:has(.mv-store) .window-intro {
  display: none;
}
#game #window#window:has(.mv-store) .window-emblem {
  width: 29px;
  height: 29px;
  left: 14px;
}
#game #window#window:has(.mv-store) .title #close {
  top: 0 !important;
  right: 5px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #624426 !important;
  color: #fff1c8 !important;
  font: 27px Arial !important;
}
#game #window#window:has(.mv-store) #windowBody {
  box-sizing: border-box;
  height: calc(100% - 44px) !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: radial-gradient(ellipse at top right, #e1ebc6, transparent 60%), #faf4e3 !important;
}
.mv-store {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  color: #4b5d38;
  font-family: Arial, sans-serif;
}
.recharge-heading {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 10px 18px;
  border-bottom: 1px solid #dadbb9;
}
.recharge-heading h2 {
  margin: 0 0 4px;
  font:
    700 23px Georgia,
    serif;
  color: #496632;
}
.recharge-heading p {
  margin: 0;
  font: 11px/1.3 Arial;
  color: #7a8265;
}
.recharge-wallet {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #d2dab1;
  border-radius: 10px;
  background: #fffff2;
}
.recharge-wallet img {
  width: 29px;
  height: 29px;
}
.recharge-wallet span {
  font: 10px Arial;
  color: #7b8864;
}
.recharge-wallet strong {
  display: block;
  margin-top: 2px;
  color: #4e7137;
  font: bold 17px Georgia;
}
.recharge-wallet small {
  font: 700 10px Arial;
}
.recharge-layout {
  display: grid;
  grid-template-columns: 137px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.recharge-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 13px 10px;
  background: #e6ebd277;
  border-right: 1px solid #daddbd;
}
.recharge-currency-tabs {
  display: grid;
  gap: 8px;
}
.recharge-sidebar button {
  cursor: pointer;
}
.recharge-currency-tabs > button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid #d5d5b5;
  border-radius: 7px;
  background: #f7f4df;
  color: #7b805f;
  font:
    700 12px/1.3 Georgia,
    serif;
  text-align: left;
}
.recharge-currency-tabs img {
  flex: none;
  width: 23px;
  height: 23px;
}
.recharge-currency-tabs > .recharge-active {
  border-color: #b9c98e;
  background: linear-gradient(#eff6d6, #d8e5b3);
  color: #4d6e34;
}
.recharge-sidebar > #mvItems {
  margin-top: auto;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #567839;
  font: 700 10px Arial;
  text-align: left;
}
.recharge-catalog {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 10px 13px;
}
.recharge-catalog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 23px;
  margin-bottom: 5px;
  font: 700 14px Georgia;
}
.recharge-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 10px Arial;
}
.recharge-pages button {
  min-width: 28px;
  min-height: 24px;
  border: 1px solid #b9c98e;
  border-radius: 4px;
  background: #eef3db;
  color: #557638;
  cursor: pointer;
}
.mv-store .mv-pack-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mv-store .mv-pack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 35px minmax(0, 1fr) 18px 38px;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid #d5ccaa;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at center, #fffbe4, transparent 65%),
    linear-gradient(135deg, #f1deb0, #f7edcf 50%, #e6d29f);
  box-shadow: 0 2px #d7cfb580;
}
.mv-store .mv-pack-recommended {
  border: 2px solid #b58a36;
  padding: 6px 7px;
  background:
    radial-gradient(ellipse at center, #fff8cf, transparent 70%),
    linear-gradient(135deg, #eed298, #fff0b9);
}
.mv-pack-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  text-align: center;
  min-width: 0;
}
.mv-store .mv-pack-heading > b {
  font: 9px Arial;
  color: #8e7853;
}
.mv-store .mv-pack-heading > strong {
  display: block;
  font: 700 23px/1.1 Georgia;
  color: #4a6b32;
  white-space: normal;
}
.mv-store .mv-pack-heading small {
  font: 700 10px Arial;
  white-space: nowrap;
}
.recharge-tag {
  position: absolute;
  top: 4px;
  left: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #b68b37;
  color: #fff9df;
  font: 700 9px/1 Arial;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-pack-first .recharge-tag {
  background: #658c3e;
}
.recharge-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.recharge-painted-sprite {
  display: block;
  height: min(100%, var(--recharge-art-size, 64px));
  aspect-ratio: 1;
  max-width: 100%;
  background: url("/assets/recharge/mv-packs-painted.png") no-repeat;
  background-size: 300% 200%;
  filter: drop-shadow(0 3px 2px #71442025);
}
.recharge-gold-sprite {
  background-image: url("/assets/recharge/gold-packs-painted.png");
}
.mv-store .mv-pack > p.recharge-bonus {
  margin: 0 -8px;
  padding: 2px;
  background: #dce7bb;
  color: #597035;
  text-align: center;
  font: 700 9px/14px Arial;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-store .mv-pack > button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  width: 100%;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid #567c35;
  border-radius: 6px;
  background: linear-gradient(#86a851, #60873a);
  box-shadow: inset 0 1px #bed693;
  color: #fffde7;
  cursor: pointer;
  text-shadow: 0 1px #4d6d32;
}
.mv-pack > button > span {
  font: 700 16px/1 Georgia;
}
.mv-pack > button > small {
  font: 9px/1.1 Arial;
}
.mv-store .mv-simulation-note {
  flex: none;
  margin: 0;
  padding: 5px 13px;
  border: 0;
  border-top: 1px solid #ded9ba;
  border-radius: 0;
  background: #efe9d4;
  color: #8a7950;
  font: 9px/1.2 Arial;
}
.recharge-gold .recharge-currency-tabs > .recharge-active {
  border-color: #ccaa58;
  background: linear-gradient(#fff0b6, #edcf7d);
  color: #805b26;
}
.recharge-gold .recharge-wallet {
  border-color: #e4cc8e;
  background: #fff8dd;
}
.recharge-gold .recharge-wallet strong,
.recharge-gold .mv-pack-heading > strong {
  color: #946520;
}
.recharge-gold .mv-pack > p.recharge-bonus {
  background: #eddda3;
  color: #86642c;
}
.recharge-gold .mv-pack > button {
  border-color: #a67b2d;
  background: linear-gradient(#e3b957, #bb8832);
  text-shadow: 0 1px #926624;
  box-shadow: inset 0 1px #ffdf90;
}
.mv-store button:focus-visible,
#rechargeOpen:focus-visible {
  outline: 3px solid #a67529;
  outline-offset: 2px;
}
#game #rechargeOpen {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 2px #243d2844);
}
#game #rechargeOpen[hidden] {
  display: none;
}
#rechargeOpen .recharge-launch-art {
  display: block;
  width: 100%;
  height: 100%;
  animation: recharge-float 3.6s ease-in-out infinite;
}
#rechargeOpen .recharge-launch-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.recharge-beams {
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: repeating-conic-gradient(
    #ffed9e00 0deg 14deg,
    #ffe68d88 19deg,
    #ffed9e00 28deg 45deg
  );
  mask-image: radial-gradient(circle, #000 10%, transparent 68%);
  animation: recharge-rays 20s linear infinite;
  pointer-events: none;
}
#rechargeOpen > b {
  position: absolute;
  top: 100%;
  font: 700 10px Arial;
  color: #fff6cf;
  background: #825124;
  border-radius: 4px;
  padding: 2px 4px;
  white-space: nowrap;
}
.recharge-launch-plus {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 14px;
  height: 14px;
  border: 1px solid #fff6cb;
  border-radius: 50%;
  background: #6d9c3c;
  color: white;
  font: 700 14px/14px Arial;
  text-align: center;
}
#game #rechargeOpen.recharge-floating {
  position: absolute;
  left: 20px;
  top: 218px;
  width: 70px;
  height: 70px;
}
@keyframes recharge-float {
  50% {
    transform: translateY(-2px);
  }
}
@keyframes recharge-rays {
  to {
    transform: rotate(360deg);
  }
}
@media (max-height: 550px) {
  #game #window#window:has(.mv-store) {
    height: calc(100dvh - 12px) !important;
    width: min(850px, calc(100vw - 12px)) !important;
  }
  #game #window#window:has(.mv-store) > .title {
    height: 36px !important;
    font-size: 18px !important;
    padding: 6px 48px !important;
  }
  #game #window#window:has(.mv-store) #windowBody {
    height: calc(100% - 36px) !important;
  }
  #game #window#window:has(.mv-store) .title #close {
    height: 34px !important;
    min-height: 34px !important;
  }
  .recharge-heading {
    padding: 5px 13px;
  }
  .recharge-heading h2 {
    font-size: 18px;
    margin: 0;
  }
  .recharge-heading p {
    display: none;
  }
  .recharge-wallet {
    padding: 3px 7px;
  }
  .recharge-wallet img {
    width: 23px;
    height: 23px;
  }
  .recharge-wallet strong {
    font-size: 14px;
  }
  .recharge-catalog {
    padding: 5px 9px;
  }
  .recharge-catalog-title {
    height: 17px;
    margin-bottom: 4px;
    font-size: 12px;
  }
  .mv-store .mv-pack-grid {
    gap: 6px;
  }
  .mv-store .mv-pack {
    grid-template-rows: 26px minmax(0, 1fr) 13px 30px;
    gap: 1px;
    padding: 4px 6px;
  }
  .mv-store .mv-pack-recommended {
    padding: 3px 5px;
  }
  .mv-store .mv-pack-heading > strong {
    font-size: 18px;
  }
  .mv-store .mv-pack-heading small {
    font-size: 8px;
  }
  .recharge-tag {
    top: 2px;
    padding: 2px 4px;
    font-size: 8px;
  }
  .mv-store .mv-pack > p.recharge-bonus {
    font-size: 8px;
    line-height: 9px;
  }
  .mv-pack > button > span {
    font-size: 14px;
  }
  .mv-pack > button > small {
    font-size: 8px;
  }
  .mv-store .mv-simulation-note {
    padding: 3px 10px;
    font-size: 8px;
  }
  .recharge-sidebar {
    padding: 8px;
  }
  .recharge-layout {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  #game #rechargeOpen {
    width: 31px;
    height: 31px;
  }
  .recharge-heading h2 {
    font-size: 19px;
  }
  .recharge-wallet small {
    font-size: 9px;
  }
}
@media (max-width: 500px) and (min-height: 551px) {
  .recharge-layout {
    display: flex;
    flex-direction: column;
  }
  .recharge-sidebar {
    flex: none;
    padding: 6px 9px;
    border-right: 0;
    border-bottom: 1px solid #daddbd;
  }
  .recharge-currency-tabs {
    display: flex;
    gap: 7px;
  }
  .recharge-currency-tabs > button {
    flex: 1;
    min-height: 36px;
    padding: 5px;
    font-size: 11px;
  }
  .recharge-sidebar > #mvItems {
    display: none;
  }
  .recharge-catalog {
    flex: 1;
    padding: 6px 9px;
  }
  .mv-store .mv-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .mv-store .mv-pack {
    grid-template-rows: 28px minmax(0, 1fr) 14px 32px;
    padding: 4px 6px;
  }
  .mv-store .mv-pack-heading > strong {
    font-size: 18px;
  }
  .mv-store .mv-pack-heading small {
    font-size: 8px;
  }
  .recharge-heading {
    padding: 7px 9px;
  }
  .recharge-heading h2 {
    font-size: 17px;
  }
  .recharge-heading p {
    display: none;
  }
  .recharge-wallet {
    padding: 5px;
    gap: 4px;
  }
  .recharge-wallet img {
    width: 23px;
    height: 23px;
  }
  .recharge-wallet strong {
    font-size: 14px;
  }
  .recharge-tag {
    padding: 2px 4px;
    font-size: 8px;
  }
  .mv-store .mv-pack > p.recharge-bonus {
    font-size: 8px;
    line-height: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rechargeOpen .recharge-launch-art,
  .recharge-beams {
    animation: none;
  }
}
.mv-store {
  gap: 0;
}
.mv-pack-heading {
  gap: 0;
}
.mv-store .mv-pack-heading > strong {
  margin: 0;
}
.mv-store .mv-pack {
  align-items: stretch;
  align-content: stretch;
}
#game #window#window:has(.mv-store) {
  height: min(560px, calc(100dvh - 16px)) !important;
}
@media (max-height: 550px) {
  #game #window#window:has(.mv-store) {
    height: calc(100dvh - 12px) !important;
  }
  .recharge-heading {
    display: none;
  }
}
@media (max-width: 500px) and (min-height: 551px) {
  #game #window#window:has(.mv-store) {
    height: min(660px, calc(100dvh - 16px)) !important;
  }
}
.recharge-art {
  container-type: size;
}
.recharge-painted-sprite {
  flex: none;
  width: var(--recharge-art-size, 64px);
  height: var(--recharge-art-size, 64px);
  max-height: 100%;
  max-width: 100%;
}
@supports (width: 1cqh) {
  .recharge-painted-sprite {
    width: min(var(--recharge-art-size, 64px), 100cqh, 100cqw);
    height: min(var(--recharge-art-size, 64px), 100cqh, 100cqw);
  }
}
.mv-store:not(.recharge-gold) .mv-pack {
  background:
    radial-gradient(ellipse at center, #f5ffdf, transparent 65%),
    linear-gradient(135deg, #d9edb1, #eff8d4 50%, #c8dfa0);
  border-color: #b5ce8c;
}
.mv-store:not(.recharge-gold) .mv-pack-heading > strong {
  color: #3e7136;
}
.mv-store:not(.recharge-gold) .mv-pack > p.recharge-bonus {
  background: #d0e6a5;
  color: #456b36;
}
.recharge-tag,
.mv-pack-first .recharge-tag {
  background: #72439b;
  color: #fff;
}
.recharge-gold .mv-pack {
  background:
    radial-gradient(ellipse at center, #fff8d8, transparent 65%),
    linear-gradient(135deg, #f2d58a, #fff0bf 50%, #e8c66f);
  border-color: #d5b760;
}
.farm-home h2 {
  margin: 0 0 12px;
  color: #496632;
  font: 700 20px Georgia;
}
.farm-home-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
}
.farm-home-actions button {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 58px;
  padding: 7px;
  border: 1px solid #c8d7a2;
  border-radius: 7px;
  background: #f1f7df;
  color: #405b32;
  text-align: left;
  cursor: pointer;
}
.farm-home-actions img {
  grid-row: 1/3;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.farm-home-actions b {
  align-self: end;
}
.farm-home-actions small {
  align-self: start;
  color: #71805c;
  font-size: 10px;
}
