/* Тропа хранителя — слой смысла поверх Норы. Только .cotinder-den-path */
.cotinder-den-path {
  margin: 14px 0 16px;
  padding: 14px 14px 16px;
  border: 1px solid var(--den-line, #ead7c8);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff6ee 70%);
  color: var(--den-ink, #3d2c29);
}

.cotinder-den-path__kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--den-muted, #7a635c);
  font-weight: 700;
}

.cotinder-den-path__h {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cotinder-den-path__lead,
.cotinder-den-path__hint,
.cotinder-den-path__deep,
.cotinder-den-path__step {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--den-ink, #3d2c29);
}

.cotinder-den-path__hint,
.cotinder-den-path__step {
  color: var(--den-muted, #7a635c);
}

.cotinder-den-path__deep.is-locked {
  font-size: 0.86rem;
}

.cotinder-den-path__board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
  margin: 10px 0 12px;
  max-width: 100%;
}

.cotinder-den-path__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  background: #f3e4d6;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6a534c;
}

.cotinder-den-path__cell.is-trail {
  background: #e8d4c0;
  color: #3d2c29;
}

.cotinder-den-path__cell.is-here {
  background: #f4c7a8;
  color: #3d2c29;
  box-shadow: 0 0 0 2px #c9845a;
}

.cotinder-den-path__cell.is-arrow {
  box-shadow: inset 0 -2px 0 #7aa87a;
}

.cotinder-den-path__cell.is-snake {
  box-shadow: inset 0 -2px 0 #c9845a;
}

.cotinder-den-path__cell.is-arrow.is-here,
.cotinder-den-path__cell.is-snake.is-here {
  box-shadow: 0 0 0 2px #c9845a, inset 0 -2px 0 #7aa87a;
}

.cotinder-den-path__oracle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--den-line, #ead7c8);
}

.cotinder-den-path__oracle img,
.cotinder-den-path__oracle-face {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3e4d6;
}

.cotinder-den-path__oracle-face {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cotinder-den-path__oracle figcaption {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.cotinder-den-path__oracle figcaption strong {
  display: block;
  margin: 0 0 2px;
  font-size: 0.82rem;
}

.cotinder-den-path__oracle-echo {
  margin: 0 0 4px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--den-muted, #7a635c);
}

.cotinder-den-path__oracle .cotinder-den-path__deep {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.cotinder-den-path__answer {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--den-line, #ead7c8);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--den-ink, #3d2c29);
}

.cotinder-den-path__answer[hidden] {
  display: none !important;
}

.cotinder-den-path__answer-kicker {
  display: block;
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9845a;
}

.cotinder-den-path__answer [data-den-path-answer-text] {
  display: block;
}

.cotinder-den-path__ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 0 0 10px;
}

.cotinder-den-path__ask label {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--den-muted, #7a635c);
}

.cotinder-den-path__ask input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--den-line, #ead7c8);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--den-ink, #3d2c29);
  background: #fff;
}

.cotinder-den-path__log {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.8rem;
  color: var(--den-muted, #7a635c);
  line-height: 1.4;
}

.cotinder-den-path__restart {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--den-muted, #7a635c);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.cotinder-den-path__restart:hover,
.cotinder-den-path__restart:focus {
  color: var(--den-ink, #3d2c29);
}

.cotinder-den-path.is-stepped .cotinder-den-path__step {
  color: #5a7a5a;
}

@media (max-width: 430px) {
  .cotinder-den-path {
    padding: 12px 10px 14px;
  }

  .cotinder-den-path__cell {
    min-height: 22px;
    font-size: 0.58rem;
    border-radius: 4px;
  }

  .cotinder-den-path__h {
    font-size: 0.98rem;
  }
}
