/* 果园 · 养成场景版样式 */

.gd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
  margin-top: 6px;
  align-items: start;
}

.gd-scene {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-height: 760px;
  background: #cfe6f5;
}
.gd-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.gd-tree-wrap {
  position: absolute;
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  width: min(70%, 460px);
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 18px 22px rgba(31, 60, 40, .22));
}
.gd-tree {
  width: 100%;
  height: auto;
  transform: scale(var(--s, 1));
  transform-origin: 50% 100%;
  animation: gdSway 6s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes gdSway {
  0%, 100% { transform: scale(var(--s, 1)) rotate(-.5deg); }
  50% { transform: scale(var(--s, 1)) rotate(.6deg); }
}

.gd-bug {
  position: absolute;
  right: 22%;
  top: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 30px;
  cursor: pointer;
  animation: gdBug 1.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18));
}
.gd-bug span {
  font-size: 11px;
  background: #fff8e6;
  color: #a4652a;
  border-radius: 99px;
  padding: 1px 8px;
  white-space: nowrap;
}
@keyframes gdBug {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -6px); }
}

.gd-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
}
.gd-act {
  width: 92px;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), filter .2s;
}
.gd-act img {
  width: 72px;
  height: 72px;
  border-radius: 24%;
  box-shadow: 0 10px 18px -10px rgba(20, 50, 40, .55);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.gd-act span { font-size: 12.5px; color: #234c40; font-weight: 600; text-shadow: 0 1px 4px rgba(255, 255, 255, .8); }
.gd-act em { font-style: normal; font-size: 10.5px; color: #3f5a4c; text-shadow: 0 1px 4px rgba(255, 255, 255, .8); }
.gd-act:hover:not(:disabled) { transform: translateY(-4px); }
.gd-act:hover:not(:disabled) img { transform: scale(1.05) rotate(-2deg); }
.gd-act:active:not(:disabled) { transform: translateY(0) scale(.96); }
.gd-act:disabled { opacity: .45; cursor: not-allowed; }
.gd-act:disabled img { filter: grayscale(.35); }

.gd-hud {
  position: absolute;
  left: 16px;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.gd-stage, .gd-lv {
  font-size: 11.5px;
  background: rgba(255, 252, 246, .88);
  border: 1px solid rgba(31, 48, 42, .12);
  border-radius: 99px;
  padding: 2px 10px;
  color: #2c4a3c;
  backdrop-filter: blur(4px);
}

.gd-side { display: grid; gap: 14px; }
.gd-side .panel { background: var(--card); }

.gd-bar {
  height: 10px;
  border-radius: 99px;
  background: rgba(31, 48, 42, .09);
  overflow: hidden;
  margin-bottom: 10px;
}
.gd-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7cbf6b, #e5b45b);
  transition: width .5s cubic-bezier(.16, 1, .3, 1);
}
.gd-stages { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.gd-stages span {
  font-size: 11px;
  padding: 1px 9px;
  border-radius: 99px;
  background: rgba(31, 48, 42, .06);
  color: var(--muted);
}
.gd-stages span.is-on { background: var(--green-soft); color: var(--green-deep); font-weight: 600; }

.gd-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.gd-task:last-of-type { border-bottom: 0; }
.gd-task b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .gd-layout { grid-template-columns: 1fr; }
  .gd-scene { aspect-ratio: 4 / 4.6; }
}
@media (max-width: 560px) {
  .gd-act { width: 78px; }
  .gd-act img { width: 62px; height: 62px; }
  .gd-tree-wrap { width: 78%; }
}
