/* ============================================================
   花园页（garden.html + js/garden.js）
   ----------------------------------------------------
   一个页面装三个 canvas 玩具：画布只占一层，控制条是普通 DOM。
   颜色沿用站点令牌（星光蓝 #8FB8FF / 暗底 #030712 / 次要字 #86868B）。
   ============================================================ */

.garden-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}
.garden-tab {
  padding: 0.34rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  color: #86868b;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.garden-tab:hover {
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.22);
}
.garden-tab.is-on {
  color: #8fb8ff;
  border-color: rgba(143, 184, 255, 0.55);
  background: rgba(143, 184, 255, 0.1);
}
.garden-tab:focus-visible {
  outline: 2px solid rgba(143, 184, 255, 0.7);
  outline-offset: 2px;
}

.garden-panel {
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(18, 20, 27, 0.52);
}
.garden-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.garden-title {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
}
.garden-fps {
  color: #86868b;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.garden-stage {
  position: relative;
  height: min(58vh, 460px);
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, rgba(20, 28, 52, 0.75), rgba(3, 7, 18, 0.95) 78%),
    #030712;
}
.garden-canvas {
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.garden-hint {
  margin-top: 0.7rem;
  color: #86868b;
  font-size: 12px;
  line-height: 1.7;
}
.garden-hint:empty {
  display: none;
}

.garden-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  margin-top: 0.85rem;
}
.garden-btn {
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
  font-size: 11.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.garden-btn:hover {
  border-color: rgba(143, 184, 255, 0.5);
  background: rgba(143, 184, 255, 0.12);
}
.garden-btn.is-on {
  color: #8fb8ff;
  border-color: rgba(143, 184, 255, 0.55);
  background: rgba(143, 184, 255, 0.14);
}
.garden-ctl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #86868b;
  font-size: 12px;
}
.garden-ctl input[type="range"] {
  width: 8rem;
  accent-color: #8fb8ff;
  cursor: pointer;
}
.garden-ctl output {
  min-width: 3.6rem;
  color: #b9c8ff;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .garden-stage {
    height: 46vh;
  }
  .garden-ctl input[type="range"] {
    width: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .garden-tab,
  .garden-btn {
    transition: none;
  }
}
