/* 키캡 꾸미기 — 터치 우선 페이지 전용 */

.kc-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kc-row .lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 64px;
  flex: none;
}

/* 프리셋 버튼 */
.preset {
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, transform 0.1s;
}
.preset:hover { border-color: var(--accent); }
.preset:active { transform: scale(0.96); }
.preset .dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.25); }

/* 색상 스와치 — 터치 크기 확보 */
.swatch {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex: none;
  transition: transform 0.1s, border-color 0.15s, box-shadow 0.15s;
}
.swatch:active { transform: scale(0.9); }
.swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: scale(1.08);
}

/* 칠하기 영역 */
#kb { touch-action: none; }
#kb .key { cursor: pointer; }
#kb .cap { transition: background-color 0.12s ease, color 0.12s ease; }

@media (max-width: 700px) {
  .kc-row .lab { width: 100%; }
  .swatch { width: 34px; height: 34px; }
  /* 작은 화면에서는 색이 주인공 — 보조 각인은 숨겨 지저분함 제거 */
  .kb-case.fit .cap .u, .kb-case.fit .cap .s { display: none; }
}
