:root {
  --game-accent: #d59b45;
  --game-accent-2: #8ca36c;
  --game-panel: rgba(15, 19, 16, 0.72);
  --game-line: rgba(241, 238, 228, 0.16);
}

.tree-hotspots {
  position: fixed;
  inset: auto 0 clamp(16px, 3vh, 28px) 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(12px, 5vw, 64px);
}

.tree-hotspot {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(220px, 42vw);
  border: 1px solid var(--game-line);
  border-radius: 999px;
  padding: 10px 13px;
  color: #f7eed8;
  background: linear-gradient(180deg, rgba(32, 38, 30, 0.78), rgba(13, 16, 13, 0.74));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), 0 0 0 7px rgba(213, 155, 69, 0.05);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font: 700 13px/1.1 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tree-hotspot:hover,
.tree-hotspot:focus-visible {
  border-color: rgba(213, 155, 69, 0.62);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 0 7px rgba(213, 155, 69, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.tree-hotspot--hedgehog {
  margin-right: auto;
}

.tree-hotspot--leaf-pile {
  margin-left: auto;
}

.tree-game-card {
  border-color: rgba(213, 155, 69, 0.24);
}

.tree-game-shell {
  display: grid;
  gap: 18px;
}

.tree-game-state,
.tree-game-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tree-game-state span {
  border: 1px solid var(--game-line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #dfd6c0;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.tree-game-lesson,
.tree-game-quiz {
  border: 1px solid var(--game-line);
  border-radius: 22px;
  padding: 18px;
  background: var(--game-panel);
}

.tree-game-list {
  margin: 12px 0 16px;
  padding-left: 20px;
  color: #cfc6b2;
}

.tree-game-quiz {
  display: grid;
  gap: 12px;
}

.tree-game-quiz label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  color: #ddd5c2;
  background: rgba(255, 255, 255, 0.026);
  cursor: pointer;
}

.tree-game-quiz input {
  margin-top: 4px;
  accent-color: var(--game-accent);
}

.tree-game-button {
  justify-self: start;
  border: 1px solid rgba(213, 155, 69, 0.45);
  border-radius: 999px;
  padding: 10px 14px;
  color: #17120a;
  background: var(--game-accent);
  cursor: pointer;
  font-weight: 800;
}

.tree-game-button:hover,
.tree-game-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid rgba(213, 155, 69, 0.34);
  outline-offset: 2px;
}

.tree-game-button--ghost {
  color: #f1eee4;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--game-line);
}

.tree-game-feedback {
  min-height: 1.4em;
  color: #f5e6c0;
}

.tree-game-export {
  display: none;
  width: 100%;
  min-height: 118px;
  border: 1px solid var(--game-line);
  border-radius: 16px;
  padding: 12px;
  color: #f1eee4;
  background: rgba(0, 0, 0, 0.32);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tree-game-export.is-visible {
  display: block;
}

.tree-game-complete .tree-game-card,
.tree-game-shell[data-tree-quiz-correct="true"] {
  box-shadow: inset 0 0 0 1px rgba(140, 163, 108, 0.30);
}

@media (max-width: 680px) {
  .tree-hotspots {
    bottom: 8px;
    padding: 0 8px;
  }

  .tree-hotspot {
    padding: 9px 10px;
    font-size: 12px;
  }
}
