:root {
  --garden-bg: #f6f1e7;

  --soil: #6b4f2d;
  --soil-light: #8f7659;

  --text-primary: #2f2a24;
  --text-muted: #6d655c;

  --node-size: 120px;

  --path-main-width: 8;
  --path-detour-width: 5;

  --garden-width: 1400px;
}

.garden-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  padding: 2rem 0;
}

.garden {
  position: relative;

  width: var(--garden-width);
  min-height: 3000px;

  margin: 0 auto;

  background: var(--garden-bg);

  border-radius: 2rem;
}

.garden-paths {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;
  pointer-events: none;

  z-index: 1;
}

.garden-path {
  fill: none;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.garden-path.main {
  stroke: var(--soil);
  stroke-width: var(--path-main-width);
}

.garden-path.detour {
  stroke: var(--soil-light);
  stroke-width: var(--path-detour-width);

  stroke-dasharray: 12 10;
}

.garden-node {
  position: absolute;

  width: var(--node-size);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 0.5rem;

  text-decoration: none;

  z-index: 2;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.garden-node:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.05);
}

.garden-node img {
  width: 84px;
  height: 84px;

  object-fit: contain;
  display: block;

  user-select: none;
  pointer-events: none;
}

.garden-label {
  text-align: center;

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;

  color: var(--text-primary);

  text-wrap: balance;
}

.garden-node.external .garden-label::after {
  content: " ↗";
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  :root {
    --garden-width: 1100px;
    --node-size: 100px;
  }

  .garden {
    min-height: 2600px;
  }

  .garden-node img {
    width: 72px;
    height: 72px;
  }

  .garden-label {
    font-size: 0.85rem;
  }
}