
#treeShop, #treeDecorate { background: #586e47; color: #fff6dc; }
.tree-language, .furniture-language { display: flex; gap: 5px; }
.tree-language { margin: 0 0 10px; }
.tree-language button, .furniture-language button {
  min-width: 44px;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #cbbf9d;
  border-radius: 11px;
  background: #fcf3de;
  color: #534c38;
  transition: none;
}
.tree-language button[aria-pressed="true"], .furniture-language button[aria-pressed="true"] {
  background: #566b47;
  border-color: #788a60;
  color: #fff7e5;
}
#furnitureDialog [hidden], #furniturePlacement[hidden] { display: none !important; }
#furnitureDialog {
  width: min(1080px, calc(100vw - 22px));
  max-width: none;
  max-height: calc(100dvh - 22px);
  margin: auto;
  padding: clamp(12px, 3vw, 23px);
  border: 1px solid #c2ad7d;
  border-radius: 23px;
  box-sizing: border-box;
  overflow: auto;
  color: #4b3e2d !important;
  background: #f9f0da !important;
  box-shadow: 0 18px 48px #33271d70;
}
#furnitureDialog::backdrop { background: #27251890; backdrop-filter: blur(3px); }
#furnitureDialog :is(h2,h3,p) { color: inherit; }
.furniture-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid #c5ad7e;
  border-radius: 15px;
  background: linear-gradient(102deg,#f7e8c7,#e5e8cb);
}
.furniture-heading > div:first-child { flex: 1 1 auto; }
.furniture-heading h2, .furniture-card h3, .furniture-confirm h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", "Microsoft YaHei", serif;
}
.furniture-heading h2 { font-size: clamp(19px,4vw,29px); }
#furnitureCoins { margin-top: 5px; color: #6e5225; font-size: .91rem; }
.furniture-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.furniture-tabs button[aria-pressed="true"], .furniture-dishes button[aria-pressed="true"] {
  background: #586e47;
  color: #fff6dc;
}
#furnitureDialog button, #furniturePlacement button { min-height: 44px; }
#furnitureNotice {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 10px 0;
  padding: 9px 13px;
  border: 1px solid #aab78b;
  border-radius: 12px;
  background: #e9edcf;
  color: #3e5336;
  animation: furniture-flourish .55s ease-out;
}
@keyframes furniture-flourish {
  from { box-shadow: 0 0 0 5px #f7cd785e; }
  to { box-shadow: 0 0 0 0 #f7cd7800; }
}
.furniture-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.furniture-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #d7c59e;
  border-radius: 15px;
  overflow: hidden;
  background: #fff8e8;
}
.furniture-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 142px;
  padding: 14px 10px 7px;
  border-bottom: 1px solid #dccda9;
  background: radial-gradient(ellipse,#fff8e1,#e3e3c3);
}
.furniture-art img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.furniture-art span {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 1px solid #d1be93;
  border-radius: 12px;
  padding: 2px 6px;
  color: #54482d;
  background: #f8edcf;
  font-size: .7rem;
}
.furniture-info { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 10px; }
.furniture-info h3 { font-size: 1.03rem; overflow-wrap: break-word; }
.furniture-info p { margin: 0; min-height: 2.25em; font-size: .81rem; color: #675d46; }
.furniture-info small { margin-top: auto; font-weight: bold; color: #674e28; }
.furniture-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.furniture-card .furniture-actions > button { flex: 1 1 100%; padding: 6px 8px; font-size: .82rem; }
.furniture-confirm { display: grid; justify-items: center; gap: 8px; padding: 18px 6px; }
.furniture-confirm img { width: min(260px,80vw); height: min(200px,32vh); object-fit: contain; }
.furniture-confirm p { margin: 0 0 8px; }
.furniture-help { padding: 12px 0; }
.furniture-dishes { display: grid; grid-template-columns: repeat(auto-fit,minmax(128px,1fr)); gap: 9px; margin-bottom: 12px; }
.furniture-dishes button { display: grid; justify-items: center; align-content: start; gap: 5px; }
.furniture-dishes img { width: 90px; height: 65px; object-fit: contain; }
#furniturePlacement {
  margin: 9px 0 0;
  padding: 12px 13px;
  border: 1px solid #a7b085;
  border-radius: 14px;
  background: #f2ecd5;
  color: #4b5336;
}
#furniturePlacement p { margin: 5px 0; color: #4b5336; }
.furniture-slot-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.furniture-slot-buttons small { display: block; }
#placementError:empty { display: none; }
.pantry-capacity { border: 1px solid #c7bd99; border-radius: 12px; padding: 10px 12px; background: #eee9ce; }
.pantry-capacity p { margin: 4px 0; }
.pantry-capacity progress { width: min(100%,380px); height: 14px; accent-color: #6c8054; }
#furnitureDialog :focus-visible, #furniturePlacement :focus-visible { outline: 3px solid #728951; outline-offset: 2px; }
@media (max-width: 840px) {
  .furniture-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 590px) {
  .furniture-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .furniture-heading { padding: 8px; gap: 6px; }
  .furniture-heading > div:first-child { flex-basis: 100%; }
  .furniture-art { height: 115px; }
  .furniture-info { padding: 8px; }
  .furniture-slot-buttons > button { flex: 1 1 44%; font-size: .8rem; padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  #furnitureNotice { animation: none; }
}

