/*
 * apps/ladder.css
 * "🪜 사다리타기" 카드 전용 스타일.
 */

.ladder-count-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ladder-count-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-sub);
}

.ladder-count-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* .count-btn 공용 원형 버튼 스타일은 css/style.css 로 이동함 (주사위 개수 선택 등에서도 재사용) */

.ladder-inputs {
  margin-bottom: 18px;
}

.ladder-input-cols {
  display: flex;
  gap: 16px;
}

.ladder-input-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ladder-input-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.ladder-input {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
}

.ladder-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.ladder-canvas-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 8px;
  overflow: hidden;
  margin-top: 4px;
}

#ladderSvg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-md) - 4px);
  background: #ffffff;
}

.ladder-top-slot {
  cursor: pointer;
}

.ladder-top-slot .ladder-top-hit {
  transition: fill 0.15s ease;
}

.ladder-top-slot:hover .ladder-top-hit {
  fill: var(--color-bg);
}

.ladder-top-slot:focus-visible .ladder-top-hit {
  stroke-width: 2.5;
}

.ladder-top-slot.is-revealed {
  cursor: default;
  opacity: 0.55;
}

.ladder-reveal-path {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.ladder-bottom-dot,
.ladder-bottom-label {
  transition: fill 0.2s ease;
}

.ladder-result-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ladder-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.ladder-result-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--pair-color, var(--color-primary));
}

.ladder-result-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
}

.ladder-result-name.is-result {
  color: var(--color-primary-dark);
  margin-left: auto;
}

.ladder-result-arrow {
  color: var(--color-text-muted);
  font-weight: 700;
}

@media (max-width: 560px) {
  .ladder-input-cols {
    gap: 10px;
  }

  .count-btn {
    width: 30px;
    height: 30px;
    font-size: 12.5px;
  }
}
