/* /var/www/html/assets/css/pixelate.css : 이미지 픽셀화 도구 전용 스타일
   (드롭존은 tool-common.css 공용 스타일 사용) */

.px-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin: 16px 0 12px;
}

.px-slider,
.px-colorwrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  color: rgba(245, 245, 242, 0.85);
}

.px-slider input[type="range"] {
  width: 180px;
  accent-color: #b5d98a;
}

.px-slider output {
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #b5d98a;
}

.px-select {
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #1c1c1c;
  color: var(--text);
  font-weight: 700;
  color-scheme: dark;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa9a4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.px-select option {
  background: #1c1c1c;
  color: #f5f5f2;
}

.px-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.px-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.px-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0% 25%, transparent 0% 50%) 0 0 / 22px 22px;
  padding: 14px;
  text-align: center;
}

.px-stage canvas {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  border-radius: 6px;
}

.px-guide {
  margin-top: 34px;
}

.px-guide h2 {
  font-size: 1.18rem;
  margin: 0 0 10px;
}

.px-guide h3 {
  font-size: 1rem;
  margin: 16px 0 6px;
}

.px-guide p,
.px-guide li {
  color: rgba(245, 245, 242, 0.78);
  line-height: 1.65;
}

@media (max-width: 560px) {
  .px-slider input[type="range"] {
    width: 130px;
  }
}
