/* "Player colour" dock tool (playercolor.js). Scoped to #pc-wrap inside the launcher panel (dock.css owns #panel). */
#pc-wrap { display: flex; flex-direction: column; gap: 12px; }
#pc-top { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
/* preview = the real CP paper doll: body + beak/feet CSS alpha-mask layers (tinted by playercolor.js) under the ink overlay */
#pc-peng { flex: none; position: relative; width: 160px; height: 160px; background: radial-gradient(circle at 50% 35%, #1b6ff0, #0a2a63 80%); border-radius: 12px; }
#pc-peng > div { position: absolute; inset: 6px; background-repeat: no-repeat; background-position: center; background-size: contain; pointer-events: none; }
#pc-peng .pc-doll-body, #pc-peng .pc-doll-beak {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; transition: background-color .08s linear;
}
#pc-peng .pc-doll-body { -webkit-mask-image: url(/launcher/doll/doll-body.png); mask-image: url(/launcher/doll/doll-body.png); }
#pc-peng .pc-doll-beak { -webkit-mask-image: url(/launcher/doll/doll-beak.png); mask-image: url(/launcher/doll/doll-beak.png); }
#pc-peng .pc-doll-ink { background-image: url(/launcher/doll/doll-ink.png); }
#pc-secs { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; min-width: 220px; }

.pc-sec { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; }
.pc-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pc-sec-head strong { color: var(--cpc-ice, #cfe9ff); }
.pc-use { font-size: 13px; color: var(--cpc-ice, #cfe9ff); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pc-rows { display: flex; flex-direction: column; gap: 8px; }
.pc-row, .pc-hexrow { display: flex; align-items: center; gap: 10px; }
.pc-row > span, .pc-hexrow > span:first-child { flex: none; width: 82px; font-size: 13px; color: #dceeff; }

.pc-row input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 12px; border-radius: 7px; outline: none;
  border: 1px solid rgba(0,0,0,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.pc-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid #0a3d8f; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.pc-row input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #0a3d8f; cursor: pointer; }

.pc-hexrow input[type=text] {
  flex: 1; min-width: 90px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px;
  padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); color: #fff;
}
.pc-sw { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 2px solid rgba(255,255,255,.6); }

#pc-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pc-btn {
  padding: 9px 16px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer;
  background: linear-gradient(#ffd166, var(--cpc-gold, #ffb627)); color: #3a2400; box-shadow: 0 3px 0 #b8771a;
}
.pc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #b8771a; }
.pc-btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.22); }
#pc-msg { min-height: 18px; margin: 0; }
