/* Сезонное дерево — встраиваемый виджет с мягкими краями */

.season-tree-mount {
  width: 100%;
  min-width: 0;
}

.season-tree-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.season-tree-widget__stage {
  position: relative;
  width: 100%;
  line-height: 0;
  -webkit-mask-image: radial-gradient(
    ellipse 92% 88% at 50% 48%,
    #000 58%,
    rgba(0, 0, 0, 0.72) 78%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 92% 88% at 50% 48%,
    #000 58%,
    rgba(0, 0, 0, 0.72) 78%,
    transparent 100%
  );
}

.season-tree-widget__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 95% 90% at 50% 50%,
    transparent 62%,
    rgba(255, 255, 255, 0.35) 88%,
    rgba(255, 255, 255, 0.85) 100%
  );
}

.season-tree-widget canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.season-tree-widget__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.season-tree-btn {
  background: var(--pub-accent-soft, #e8f5e9);
  border: 1px solid var(--pub-border, #e5e7eb);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  color: var(--pub-heading, #1b4d3e);
  font-family: inherit;
}

.season-tree-btn:hover {
  background: #f4faf2;
  border-color: #c8e6c9;
}

.season-tree-btn.is-active {
  background: #fff;
  border-color: #c2bc7a;
  box-shadow: 0 1px 4px rgba(58, 90, 56, 0.1);
}

.season-tree-widget--compact .season-tree-btn {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
}

/* Компактный вид: дерево и поле целиком, мягкое растворение по краям */
.season-tree-widget--ground-view {
  gap: 0.55rem;
}

.season-tree-widget--ground-view .season-tree-widget__stage {
  width: 100%;
  min-height: 170px;
  overflow: visible;
  -webkit-mask-image: radial-gradient(
    ellipse 82% 94% at 50% 52%,
    #000 54%,
    rgba(0, 0, 0, 0.84) 80%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 82% 94% at 50% 52%,
    #000 54%,
    rgba(0, 0, 0, 0.84) 80%,
    transparent 100%
  );
}

.season-tree-widget--ground-view .season-tree-widget__stage::after {
  background: radial-gradient(
    ellipse 106% 96% at 50% 54%,
    transparent 58%,
    rgba(255, 255, 255, 0.16) 82%,
    rgba(255, 255, 255, 0.68) 100%
  );
}

@media (max-width: 520px) {
  .season-tree-widget__controls {
    gap: 0.3rem;
  }

  .season-tree-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }
}
