.single-garden {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 100px;
}

.garden-gameboard {
  min-height: calc(100vh - 115px);
  border: 1px solid #bddba9;
  border-radius: 25px;
  overflow: hidden;
  background: #f7fae9;
  box-shadow: 0 24px 70px rgba(42, 91, 54, .18);
}

.game-hud {
  position: relative;
  z-index: 3;
  min-height: 105px;
  padding: 19px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(110deg, #fffdf0, #eff8d9);
  border-bottom: 1px solid #d5e6be;
}

.owner-heading h1 {
  margin: 5px 0 3px;
  font: 700 25px var(--serif);
  color: #234b37;
}

.owner-heading p {
  margin: 0;
  color: #71826f;
  font: 10px/1.5 var(--serif);
}

.hud-score {
  min-width: 100px;
  padding: 11px 16px;
  border-radius: 15px;
  text-align: center;
  background: #1d4e3d;
  color: #fff;
}

.hud-score span {
  display: block;
  color: #b5cfc3;
  font-size: 8px;
}

.hud-score strong {
  display: block;
  margin-top: 3px;
  color: #f2d26f;
  font: 600 24px var(--serif);
}

.member-strip {
  position: relative;
  z-index: 4;
  min-height: 72px;
  padding: 10px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #c8dfa9;
  background: rgba(239, 248, 210, .96);
}

.member-strip > span {
  flex: 0 0 auto;
  color: #67805e;
  font-size: 9px;
  font-weight: 700;
}

.owner-switcher {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.owner-switcher::-webkit-scrollbar { display: none; }

.owner-tab {
  flex: 0 0 auto;
  min-width: 125px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d2e3bd;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  color: #4d6554;
  text-align: left;
  font-size: 9px;
}

.owner-tab i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dbeac9;
  color: #3e684b;
  font-style: normal;
  font: 600 10px var(--serif);
}

.owner-tab span { font-weight: 700; }
.owner-tab small { display: block; margin-top: 3px; color: #82927e; font-size: 7px; font-weight: 400; }
.owner-tab.active { border-color: #28624c; background: #245a46; color: #fff; box-shadow: 0 6px 15px rgba(36,90,70,.2); }
.owner-tab.active i { background: #e4f39e; color: #315642; }
.owner-tab.active small { color: #c2dbce; }

.garden-landscape {
  position: relative;
  min-height: 500px;
  padding: 105px 25px 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #79d4f0 0 48%, #a8db72 49% 72%, #70bd57 73% 100%);
}

.scene-sun {
  position: absolute;
  right: 8%;
  top: 32px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #ffe16c;
  box-shadow: 0 0 0 13px rgba(255,225,108,.22), 0 0 42px rgba(255,215,73,.55);
  animation: sunPulse 4s ease-in-out infinite alternate;
}

.scene-cloud {
  position: absolute;
  width: 90px;
  height: 25px;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: 25px -12px 0 2px rgba(255,255,255,.82), 52px 1px 0 -3px rgba(255,255,255,.82);
}

.cloud-one { top: 52px; left: 8%; animation: cloudDrift 18s linear infinite alternate; }
.cloud-two { top: 105px; left: 58%; transform: scale(.7); opacity: .72; animation: cloudDrift 23s -7s linear infinite alternate-reverse; }

.scene-hills {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 42%;
  height: 170px;
  border-radius: 50% 50% 0 0;
  background: #8dcd69;
  box-shadow: 390px -22px 0 #79c365, -310px 5px 0 #a3d67a;
}

.scene-path {
  position: absolute;
  left: 43%;
  bottom: -25px;
  width: 150px;
  height: 260px;
  border-radius: 50%;
  transform: perspective(230px) rotateX(54deg);
  background: #d9ba72;
  opacity: .82;
}

.scene-trees {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(155px, 1fr));
  gap: 18px;
  align-items: end;
}

.scene-trees .tree-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.scene-trees .tree-card:hover { transform: translateY(-5px); box-shadow: none; }
.scene-trees .tree-visual { height: 190px; margin: 0; border-radius: 46% 46% 16px 16px; background: transparent; overflow: visible; }
.scene-trees .tree-visual:before, .scene-trees .tree-visual:after { display: none; }
.scene-trees .tree-crown { top: 32px; width: 126px; height: 100px; }
.scene-trees .tree-trunk { bottom: 10px; height: 78px; width: 16px; }
.scene-trees .tree-ready { right: 6px; top: 4px; }
.scene-trees .fruit { width: 19px; height: 19px; }

.scene-trees .tree-card h3 {
  min-height: 46px;
  margin: -2px 0 0;
  padding: 10px 10px 2px;
  border-radius: 12px 12px 0 0;
  text-align: center;
  background: rgba(255,255,245,.91);
  color: #294837;
  font-size: 12px;
}

.scene-trees .tree-meta {
  margin: 0;
  padding: 4px 9px 7px;
  background: rgba(255,255,245,.91);
}

.scene-trees .tree-action {
  margin: 0;
  border-radius: 0 0 11px 11px;
}

.garden-rule {
  position: absolute;
  left: 18px;
  bottom: 13px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(31,78,59,.72);
  color: #d8eadf;
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.game-toolbar {
  min-height: 90px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto minmax(230px, .7fr) 1fr;
  gap: 13px;
  align-items: center;
  border-top: 1px solid #cee0b5;
  background: linear-gradient(90deg, #f4f7de, #fffceb);
}

.game-toolbar > button {
  min-width: 76px;
  height: 62px;
  border: 0;
  border-radius: 13px;
  background: #245a46;
  color: #e2f29d;
}

.game-toolbar > button b { display: block; font-size: 21px; }
.game-toolbar > button span { font-size: 8px; }
.toolbar-basket, .toolbar-log { min-width: 0; }
.toolbar-basket > span, .toolbar-log > span { display: block; margin-bottom: 7px; color: #71816f; font-size: 8px; font-weight: 700; }
.toolbar-basket .fruit-basket { min-width: 0; justify-content: flex-start; overflow: hidden; }
.toolbar-log .log-row { padding: 10px 11px; }

@keyframes cloudDrift { to { transform: translateX(75px); } }
@keyframes sunPulse { to { transform: scale(1.08); filter: brightness(1.1); } }

@media (max-width: 820px) {
  .single-garden { padding: 12px 10px 88px; }
  .garden-gameboard { border-radius: 18px; }
  .game-hud { min-height: 88px; padding: 14px 15px; }
  .owner-heading h1 { font-size: 20px; }
  .owner-heading p { max-width: 230px; }
  .member-strip { padding: 8px 10px; }
  .member-strip > span { display: none; }
  .owner-tab { min-width: 112px; }
  .garden-landscape { min-height: 475px; padding: 75px 13px 52px; }
  .scene-trees { grid-template-columns: repeat(2, 1fr); gap: 15px 10px; }
  .scene-trees .tree-visual { height: 140px; }
  .scene-trees .tree-crown { width: 102px; height: 78px; top: 23px; }
  .scene-trees .tree-trunk { height: 60px; }
  .scene-trees .tree-card h3 { min-height: 42px; font-size: 11px; }
  .game-toolbar { grid-template-columns: auto 1fr; }
  .toolbar-log { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .hud-score { min-width: 78px; padding: 8px 10px; }
  .hud-score strong { font-size: 20px; }
  .owner-heading p { max-width: 190px; font-size: 8px; }
  .garden-landscape { min-height: 560px; }
  .scene-trees .tree-visual { height: 135px; }
  .scene-trees .tree-meta { display: block; text-align: center; }
  .scene-trees .tree-meta span { display: block; margin-top: 2px; }
  .game-toolbar { grid-template-columns: 65px 1fr; padding: 10px; }
  .game-toolbar > button { min-width: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-sun, .scene-cloud { animation: none !important; }
}
