@import url("/css/game/fortune-wheel.css");
#window {
  position: fixed;
  inset: 0;
  width: min(1000px, 94vw);
  height: min(790px, 90dvh);
  max-height: 90dvh;
  max-width: 1000px;
  border: 6px solid #72502c;
  border-radius: 23px;
  background: #fbf6e8;
  color: #425137;
  padding: 0;
  box-shadow:
    0 25px 90px #102b1566,
    0 0 0 2px #c49a59,
    inset 0 0 0 2px #fff0c8;
  font-family: Arial, sans-serif;
  overflow: hidden;
}
.vip-price-wrap {
  max-height: 360px;
  overflow: auto;
  margin: 12px 0;
  border: 1px solid #bda979;
  border-radius: 6px;
}
.vip-price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf6;
  font-size: 13px;
}
.vip-price-table th,
.vip-price-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #e2d8c1;
  text-align: right;
  white-space: nowrap;
}
.vip-price-table th:first-child,
.vip-price-table td:first-child {
  text-align: left;
}
.vip-price-table th {
  position: sticky;
  top: 0;
  background: #e8dfc9;
  color: #425137;
}
.vip-price-table .unavailable {
  color: #858579;
  font-style: italic;
}
#window::backdrop {
  background: #102b2b80;
  backdrop-filter: none;
}
#window .title {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 70px;
  border: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #482f1814 24px 25px),
    linear-gradient(100deg, #936133, #b4834b 45%, #926137);
  box-shadow:
    inset 0 3px #e6ba7580,
    0 4px 0 #533d2580;
  color: #fff5d4;
  text-shadow: 0 2px 2px #49351f;
  font:
    bold 29px Georgia,
    serif;
  letter-spacing: 0.2px;
}
#window .title:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 42%;
  width: 16%;
  height: 8px;
  background: #658743;
  border-radius: 0 0 9px 9px;
  box-shadow: inset 0 2px #46622a;
}
.window-emblem {
  position: absolute;
  left: 23px;
  width: 57px;
  height: 57px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #3b291a44);
}
#window .title button {
  right: 17px;
  top: 22px;
  width: 39px;
  height: 39px;
  border: 2px solid #ffe2a675;
  border-radius: 12px;
  background: #61402566;
  color: #ffefd2;
  font: 30px/30px Arial;
  box-shadow: 0 2px #4c341d44;
  transition:
    background 0.15s,
    transform 0.15s;
}
#window .title button:hover {
  background: #70462d;
  transform: rotate(5deg);
}
#windowBody {
  height: calc(100% - 86px);
  overflow: auto;
  padding: 27px 30px 30px;
  background: radial-gradient(ellipse at top left, #fffdf4, transparent 60%), #f6f0df;
  scrollbar-color: #a6b880 #ebe5d3;
  scrollbar-width: thin;
}
.window-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d9dcc2;
}
.eyebrow {
  font: bold 10px/1.6 Arial;
  letter-spacing: 1.7px;
  color: #7a8d55;
}
.window-intro p {
  font: 17px/1.5 Georgia;
  color: #60734a;
  margin: 5px 0 0;
}
.window-wallet {
  display: flex;
  flex: none;
  gap: 9px;
}
.window-wallet > span {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d9ddbd;
  border-radius: 30px;
  background: #fffbee;
  padding: 6px 12px;
  font: bold 13px Arial;
  color: #6b773f;
}
.window-wallet img {
  width: 25px;
  height: 25px;
}
#window .tabs {
  position: sticky;
  top: -27px;
  z-index: 2;
  padding: 10px 0 15px;
  background: #f8f3e7;
  gap: 8px;
  border: 0;
  margin-bottom: 6px;
  overflow-x: auto;
}
#window .tabs button {
  border: 1px solid #d9d9b9;
  border-radius: 11px;
  padding: 11px 18px;
  background: #eee9d6;
  color: #7a8061;
  font: 600 13px Arial;
  white-space: nowrap;
}
#window .tabs button.selected {
  background: linear-gradient(#7d9e51, #5c803b);
  color: #fffbe9;
  border-color: #597d38;
  box-shadow:
    0 3px 7px #5a783f22,
    inset 0 1px #b0c38a;
}
#window .tabs button:hover {
  filter: brightness(1.04);
}
#window .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
}
#window .seed {
  background: linear-gradient(#fffdf4, #fbf8e9);
  border: 1px solid #dedfc2;
  border-radius: 17px;
  padding: 17px 15px 15px;
  box-shadow: 0 3px 0 #d8d7b94d;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  overflow: hidden;
}
#window .seed:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px #6479421a;
  border-color: #adbd83;
}
#window .seed img {
  height: 105px;
  padding: 6px;
  background: radial-gradient(ellipse, #e8edcf66, transparent 68%);
}
#window .seed > b {
  font: bold 18px Georgia;
  color: #476237;
  margin: 8px 0 12px;
}
#window .seed small {
  font: 11px/1.7 Arial;
  color: #8b9175;
  margin-top: 12px;
}
#window .seed .buy-seed {
  border: 1px solid #b5c88a;
  border-radius: 9px;
  padding: 8px;
  background: #edf3d9;
  color: #536e32;
}
#window .seed .buy-seed:disabled {
  opacity: 0.45;
}
#window .seed .buy-seed span {
  font: bold 14px Arial;
}
#window .seed .mv-buy {
  font: bold 12px Arial;
  border-radius: 9px;
  padding: 7px 12px;
  background: #f4f8e9;
}
#window .seed .vip-tag {
  top: 11px;
  right: 11px;
  background: #fae8a2;
  border: 1px solid #e5cc7b;
  color: #987428;
  font: bold 9px Arial;
  letter-spacing: 1px;
  padding: 4px 6px;
  border-radius: 5px;
}
#window .items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#window .item {
  border: 1px solid #daddbe;
  border-radius: 17px;
  padding: 24px 16px;
  background: #fffdf3;
  box-shadow: 0 3px 0 #d6d5bc44;
}
#window .item img {
  height: 95px;
}
#window .item p {
  font: bold 17px Georgia;
  color: #526b3c;
}
#window .item > b {
  font: 12px/1.6 Arial;
  color: #849062;
}
#window .classic-button,
#window .item button {
  border: 1px solid #567932;
  border-radius: 10px;
  background: linear-gradient(#88a952, #64863e);
  padding: 12px 22px;
  color: #fffde9;
  text-shadow: 0 1px #506a35;
  font: bold 14px Arial;
  box-shadow:
    inset 0 1px #c1d69c,
    0 3px #47642e2b;
  transition:
    filter 0.15s,
    transform 0.15s;
}
#window button:hover:not(:disabled) {
  filter: brightness(1.06);
}
#window button:active:not(:disabled) {
  transform: translateY(1px);
}
#window button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
#window .classic-button + button {
  background: #f1eddd;
  color: #6c7453;
  border-color: #c7cbaa;
  text-shadow: none;
  box-shadow: 0 2px #c4c7aa44;
}
#window .window-note {
  font: 12px/1.6 Arial;
  color: #899071;
  padding: 14px 0;
  margin: 12px 0 0;
}
#window .empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 35px;
  gap: 22px;
  border: 2px dashed #d6dcb9;
  border-radius: 18px;
  background: #f0f1df88;
  font: 20px/1.6 Georgia;
  color: #809062;
}
#window .empty img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 4px #71844522);
}
#window .friend-search {
  padding: 20px;
  background: #e8edd8;
  border: 1px solid #d3ddba;
  border-radius: 15px;
}
#window .friend-search label {
  display: block;
  font: bold 12px Arial;
  color: #677b4b;
  margin-bottom: 10px;
}
#window input,
#window select {
  border: 1px solid #cbd2b0;
  background: #fffdf4;
  border-radius: 9px;
  padding: 12px;
  color: #485b3b;
  font: 14px Arial;
  outline: none;
}
#window input:focus,
#window select:focus {
  border-color: #8ba85e;
  box-shadow: 0 0 0 3px #c8d9aa55;
}
#window .friend-search button,
#window .friend-row button {
  border: 1px solid #a9bd87;
  background: #f8fbed;
  border-radius: 8px;
  color: #5c793f;
  font: bold 12px Arial;
  padding: 10px 13px;
}
#window .friend-search button {
  background: #6d9044;
  color: #fff8e4;
  border-color: #5a7937;
}
#window .friend-row {
  background: #fffdf3;
  border: 1px solid #e0e2ca;
  border-radius: 13px;
  padding: 15px;
  margin: 9px 0;
  gap: 14px;
}
#window .friend-row > img {
  width: 53px;
  height: 53px;
  border: 3px solid #e3e9cf;
  border-radius: 13px;
}
#window .friend-row b {
  font: bold 16px Georgia;
  color: #4d663d;
}
#window .friend-row small {
  color: #899771;
  font-size: 11px;
}
#windowBody h3 {
  font: bold 20px Georgia;
  color: #546c3d;
  margin: 25px 0 14px;
}
.gift-list li {
  background: #eaf0da66;
  padding: 13px 16px;
  border-radius: 9px;
  border: 0;
  margin-bottom: 7px;
  color: #7b8968;
  font-size: 12px;
}
#window .vip-intro {
  position: relative;
  padding: 30px 24px;
  background: radial-gradient(ellipse at top, #fff5cb, #eee6bc);
  border: 1px solid #ded09c;
  border-radius: 17px;
  margin: 0 0 22px;
}
#window .vip-intro > b {
  font: bold 30px Georgia;
  color: #97782c;
}
#window .vip-intro p {
  font: 14px/1.6 Arial;
  color: #928348;
}
#window .vip-plans {
  gap: 17px;
}
#window .vip-plans > div {
  position: relative;
  border: 1px solid #d8d5ac;
  background: #fffdf0;
  border-radius: 17px;
  padding: 27px 16px;
  box-shadow: 0 4px 0 #dad4b74d;
}
#window .vip-plans > div > b {
  font: bold 20px Georgia;
  color: #6b783f;
}
#window .vip-plans p {
  font: 13px Arial;
  color: #a29a72;
}
#window .vip-plans .classic-button {
  width: 100%;
  font-size: 12px;
  padding: 12px 8px;
}
#window .classic-form {
  max-width: 560px;
  margin: 0 auto;
  background: #fffdf3;
  border: 1px solid #dce0c3;
  border-radius: 17px;
  padding: 25px 30px;
}
#window .classic-form label {
  font: bold 12px Arial;
  color: #6f8058;
  margin: 15px 0 5px;
}
#window .avatar-options {
  border: 0;
  padding: 0;
  margin: 25px 0;
  gap: 13px;
}
#window .avatar-options legend {
  font: bold 11px Arial;
  color: #85946c;
  margin-bottom: 8px;
}
#window .avatar-options label {
  margin: 0;
}
#window .avatar-options img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border-color: #e1e6cb;
  background: #f2f4e4;
  transition: transform 0.15s;
}
#window .avatar-options input {
  position: absolute;
  width: 1px;
  opacity: 0;
}
#window .avatar-options input:checked + img {
  border: 3px solid #88a357;
  box-shadow: 0 0 0 3px #e5edcf;
}
#window .avatar-options input:focus-visible + img {
  outline: 3px solid #d9b54c;
}
#window .muted {
  color: #93997f;
  font: 12px/1.7 Arial;
}
#window .success-note {
  background: #eef3df;
  border: 1px solid #d5e1b6;
  border-radius: 17px;
  padding: 50px 25px;
  color: #698944;
}
.expansion-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  padding: 5px 0 15px;
}
.expansion-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #d3dfb4;
  border-radius: 19px;
  background: radial-gradient(ellipse at 50% 30%, #eaf3ce, #dee8c8 75%);
  padding: 25px;
}
.mini-field {
  width: 185px;
  height: 150px;
  position: relative;
  margin: 20px 0 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  transform: rotate(-30deg) skewX(25deg) scale(0.85);
  filter: drop-shadow(-6px 9px 0 #658b3970);
}
.mini-field span {
  background: repeating-linear-gradient(0deg, #ac824d 0 9px, #805a32 10px 15px);
  border: 3px solid #c7a36a;
  border-radius: 4px;
}
.mini-field span:last-child {
  background: repeating-linear-gradient(0deg, #b9ce7b 0 9px, #81a451 10px 15px);
  border-color: #c9dc8b;
}
.field-number {
  font: bold 10px Arial;
  letter-spacing: 2px;
  color: #637e42;
  background: #f6f8e4;
  padding: 7px 13px;
  border: 1px solid #bbcda0;
  border-radius: 20px;
}
.expansion-preview h3 {
  font-size: 24px !important;
  margin: 20px 0 10px !important;
}
.expansion-preview p {
  font: 13px/1.8 Arial;
  color: #7d8d65;
  margin: 0;
}
.expansion-details h3 {
  font-size: 25px !important;
  margin: 9px 0 22px !important;
}
.requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e9edd8;
  border: 1px solid #d4ddbd;
  border-radius: 11px;
  padding: 13px;
  font-size: 12px;
}
.requirement b {
  font: bold 21px Georgia;
  margin-left: auto;
}
.requirement small {
  font-size: 11px;
  color: #879369;
}
.cost-label {
  font: bold 13px Arial;
  margin-top: 24px;
  color: #63774a;
}
.cost-label small {
  display: block;
  font: 11px Arial;
  color: #99a080;
  margin-top: 7px;
}
.land-costs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.land-costs > div {
  flex: 1;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 3px 7px;
  background: #fffdf0;
  border: 1px solid #dadfbc;
  border-radius: 12px;
  padding: 13px 10px;
}
.land-costs img {
  width: 32px;
  height: 32px;
  grid-row: span 2;
}
.land-costs b {
  font: bold 16px Arial;
  color: #758240;
  align-self: end;
}
.land-costs small {
  font: 10px Arial;
  color: #9a9f80;
}
.land-costs > span {
  font: 20px Georgia;
  color: #97a374;
}
.missing b {
  color: #b87748;
}
.expansion-buy {
  width: 100%;
  margin-top: 23px !important;
  padding: 15px !important;
}
.expansion-buy span {
  display: block;
  margin-top: 5px;
  font: 11px Arial;
  opacity: 0.85;
}
.purchase-note {
  font: 11px/1.6 Arial;
  text-align: center;
  color: #8f997c;
  margin-top: 13px;
}
@media (max-width: 700px) {
  #window {
    width: 96vw;
    height: 92dvh;
    max-height: 92dvh;
    border-width: 4px;
    border-radius: 17px;
  }
  #window .title {
    height: 70px;
    font-size: 23px;
    padding: 10px 57px;
  }
  .window-emblem {
    left: 14px;
    width: 43px;
    height: 43px;
  }
  #window .title button {
    right: 12px;
    top: 17px;
    width: 33px;
    height: 33px;
    font-size: 25px;
  }
  #windowBody {
    height: calc(100% - 70px);
    padding: 20px 16px;
  }
  .window-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }
  .window-intro p {
    font-size: 15px;
  }
  .window-wallet > span {
    padding: 4px 9px;
    font-size: 12px;
  }
  .window-wallet img {
    width: 21px;
    height: 21px;
  }
  #window .shop-grid,
  #window .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  #window .seed {
    padding: 13px 10px;
  }
  #window .seed img {
    height: 86px;
  }
  #window .seed > b {
    font-size: 16px;
  }
  #window .tabs {
    top: -20px;
    padding: 8px 0 12px;
  }
  #window .tabs button {
    padding: 10px 13px;
    font-size: 12px;
  }
  .expansion-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .expansion-preview {
    padding: 18px;
  }
  .mini-field {
    margin: 0;
    height: 95px;
    width: 135px;
  }
  .expansion-preview h3 {
    font-size: 21px !important;
    margin: 12px 0 8px !important;
  }
  .expansion-preview p {
    font-size: 12px;
  }
  #window .friend-row {
    flex-wrap: wrap;
    gap: 9px;
  }
  #window .friend-row > div {
    min-width: 130px;
  }
  #window .friend-row button {
    padding: 8px;
    font-size: 11px;
  }
  #window .vip-plans {
    grid-template-columns: 1fr;
  }
  #window .classic-form {
    padding: 17px;
  }
  #window .avatar-options {
    gap: 8px;
  }
  #window .avatar-options img {
    width: 58px;
    height: 58px;
  }
  .land-costs b {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #window * {
    transition: none !important;
  }
}
