/*
 * Ekosistem — yalnızca bu simülasyona özgü stiller: çayır/hayvan renkleri (açık + iki koyu seçici),
 * sahne imleci, nüfus grafiği kabı, renk açıklaması örnekleri. Düzen, kontroller, açıklama kutusu,
 * sayaçlar ve kod panelleri çekirdekte (core/theme.css). Renkler içerik rengidir (düşen kumdaki madde renkleri gibi).
 */

.lab {
  --lab-eco-soil: #d8cbb0;
  --lab-eco-grass: #6aa553;
  --lab-eco-rabbit: #fbf8f3;
  --lab-eco-rabbit-edge: #5d564d;
  --lab-eco-fox: #dc6f26;
  --lab-eco-fox-edge: #7a330d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lab:not([data-theme="light"]) {
    --lab-eco-soil: #4a4134;
    --lab-eco-grass: #3f7a34;
    --lab-eco-rabbit: #f2efe9;
    --lab-eco-rabbit-edge: #1c1a17;
    --lab-eco-fox: #f08236;
    --lab-eco-fox-edge: #3a1906;
  }
}

:root[data-theme="dark"] .lab:not([data-theme="light"]),
.lab[data-theme="dark"] {
  --lab-eco-soil: #4a4134;
  --lab-eco-grass: #3f7a34;
  --lab-eco-rabbit: #f2efe9;
  --lab-eco-rabbit-edge: #1c1a17;
  --lab-eco-fox: #f08236;
  --lab-eco-fox-edge: #3a1906;
}

/* ------------------------------------------------------------- sahne */

/* Dokunmatikte hayvan bırakırken / ot ekerken sayfa kaymasın. */
.eco-stage {
  touch-action: none;
  cursor: crosshair;
}

.eco-stage[data-tool="inspect"] {
  cursor: pointer;
}

.eco-chart {
  border-radius: var(--lab-radius-sm);
}

/* ------------------------------------------------- renk açıklaması örnekleri */

.eco-legend__grass {
  width: 16px;
  height: 10px;
  border-radius: 3px;
  background: var(--lab-eco-grass);
  opacity: 0.6;
}

.eco-legend__rabbit {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--lab-text);
}

.eco-legend__fox {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--lab-eco-fox);
}

.eco-legend__vision {
  width: 12px;
  height: 12px;
  border: 1.5px dashed var(--lab-accent);
  border-radius: 50%;
  background: var(--lab-accent-soft);
}

/* ---------------------------------------------------------- kod panelleri */

.eco-codes > .lab-code:not(:first-child) .lab-code__eyebrow {
  display: none;
}

.eco-codes > .lab-code:not(:first-child) {
  padding-top: 12px;
}

.eco-codes > .lab-code.is-focused .lab-code__line {
  background: var(--lab-accent-soft);
}
