/* 羊文字メーカー。画面の枠は水文字メーカー(water-maker.css)と同じで、ここは羊文字だけの見た目。
   部品の形はラインストーン文字メーカーの段階ボタン・色の並びにそろえる */

/* キャンバスは透明に描く(保存は透過PNG)。画面では、白い毛が見える あたたかい生成りの地にする */
.hitsuji-maker .stage { background:radial-gradient(ellipse at 50% 45%, #f6efe3 0%, #e6dccb 80%); touch-action:manipulation; }
.hitsuji-maker .stage .stage-label { box-shadow:0 1px 4px rgba(0,0,0,.12); }
.hitsuji-maker .stage.tappable { cursor:pointer; user-select:none; -webkit-user-select:none; }
/* ひつじの画面: 置いたものを引いて動かすので、ページがスクロールしないようにする。カーソルは場所ごとにスクリプトで変える */
.hitsuji-maker .stage.hj-editing { touch-action:none; cursor:default; }
.hitsuji-maker.theme-dark .stage { background:radial-gradient(ellipse at 50% 45%, #3a332c 0%, #221d18 80%); }

.hitsuji-maker .hj-note { margin:8px 0 10px; color:var(--sub); font-size:12px; line-height:1.5; text-align:center; }
.hitsuji-maker .hj-choice { min-width:0; margin-bottom:12px; }
.hitsuji-maker .hj-choice h2 { margin:0 0 6px; }
.hitsuji-maker .hj-choice .thumb { min-width:0; height:108px; }
.hitsuji-maker .hj-choice .thumb-name { font-size:12px; white-space:nowrap; }
.hitsuji-maker .thumb > .thumb-canvas { background:#efe7da; border-radius:8px; }
.hitsuji-maker .thumb > .thumb-canvas img { object-fit:contain; }
@media (max-width:420px) { .hitsuji-maker .hj-choice .thumb { height:96px; } }

/* 種類のボタン(数に合わせて等分。多いときは折り返す) */
.hitsuji-maker .hj-options { display:grid; grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); gap:6px; }
.hitsuji-maker .hj-option { border-radius:14px; display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; padding:6px 2px; white-space:nowrap; }
.hitsuji-maker .hj-option.has-icon { flex-direction:column; gap:4px; min-height:78px; padding:6px 2px 5px; }
.hitsuji-maker .hj-option-icon { width:46px; height:46px; flex:0 0 auto; }
@media (max-width:420px) { .hitsuji-maker .hj-option { font-size:11px; } .hitsuji-maker .hj-option-icon { width:40px; height:40px; } .hitsuji-maker .hj-option.has-icon { min-height:70px; } }

/* スライダー(両はしに、何が変わるかの言葉) */
.hitsuji-maker .hj-slider-row { display:flex; align-items:center; gap:8px; }
.hitsuji-maker .hj-slider { flex:1 1 auto; min-width:0; accent-color:var(--accent); height:32px; }
.hitsuji-maker .hj-slider-end { flex:0 0 auto; font-size:12px; color:var(--sub); }

/* 毛の色の丸 */
.hitsuji-maker .hj-color-name { display:flex; justify-content:center; margin:2px 0 8px; }
.hitsuji-maker .hj-color-name b { font-size:17px; }
.hitsuji-maker .hj-palette { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; padding:6px 4px 4px; }
.hitsuji-maker .hj-dot { flex:0 0 auto; width:38px; height:38px; padding:0; border-radius:50%; border:2px solid rgba(61,43,31,.25); background:var(--dot); cursor:pointer; }
.hitsuji-maker .hj-dot[aria-pressed="true"] { border-color:#fff; box-shadow:0 0 0 3px var(--accent); }
.hitsuji-maker .hj-dot:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }

/* ---- ひつじ: 追加ボタン(押すと置かれる)。下の「選んだもの」とは形を分ける ---- */
.hitsuji-maker .hj-add-area { margin-bottom:12px; }
.hitsuji-maker .hj-add-area h2 { margin:0 0 6px; }
.hitsuji-maker .hj-adds { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.hitsuji-maker .hj-add { position:relative; display:flex; align-items:center; justify-content:center; gap:6px; min-height:52px; padding:6px 8px; border:2px solid var(--accent); border-radius:999px; background:var(--surface); color:var(--accent-hi, var(--accent)); font:800 14px "Noto Sans JP",sans-serif; cursor:pointer; transition:transform .12s, background .12s; }
.hitsuji-maker .hj-add:hover { background:color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.hitsuji-maker .hj-add:active { transform:scale(.96); }
.hitsuji-maker .hj-add-plus { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--accent); color:#fff; flex:0 0 auto; }
.hitsuji-maker .hj-add-plus .material-symbols-rounded, .hitsuji-maker .hj-add-plus .ms { font-size:16px; }
.hitsuji-maker .hj-add-icon { width:32px; height:32px; flex:0 0 auto; }
.hitsuji-maker .hj-add-name { white-space:nowrap; }

/* 選んだもの: 枠で囲んだカード。中の形は小さな見本の並び */
.hitsuji-maker .hj-edit { border:1.5px solid var(--line); border-radius:16px; background:var(--surface2, rgba(0,0,0,.03)); padding:10px 10px 8px; }
.hitsuji-maker .hj-edit.is-empty { border-style:dashed; background:transparent; padding:16px 12px; }
.hitsuji-maker .hj-edit-empty { margin:0; color:var(--sub); font-size:13px; line-height:1.6; text-align:center; }
.hitsuji-maker .hj-edit-head { display:flex; align-items:center; gap:8px; padding-bottom:8px; margin-bottom:6px; border-bottom:1px solid var(--line); }
.hitsuji-maker .hj-edit-icon { width:30px; height:30px; flex:0 0 auto; }
.hitsuji-maker .hj-edit-head b { flex:1 1 auto; font-size:14px; }
.hitsuji-maker .hj-edit-remove { display:inline-flex; align-items:center; gap:2px; min-height:34px; padding:0 10px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:#c0392b; font:700 12px "Noto Sans JP",sans-serif; cursor:pointer; }
.hitsuji-maker .hj-edit-remove .material-symbols-rounded, .hitsuji-maker .hj-edit-remove .ms { font-size:18px; }
.hitsuji-maker .hj-prop { margin:6px 0 8px; }
.hitsuji-maker .hj-prop-label { font-size:12px; font-weight:700; color:var(--sub); margin:0 0 4px 2px; }
.hitsuji-maker .hj-swatches { display:grid; grid-template-columns:repeat(var(--n, 5), minmax(0, 1fr)); gap:4px; }
.hitsuji-maker .hj-swatch { display:flex; flex-direction:column; align-items:center; gap:1px; min-width:0; padding:4px 0 3px; border:2px solid transparent; border-radius:10px; background:transparent; color:var(--text); font:600 10.5px "Noto Sans JP",sans-serif; cursor:pointer; }
.hitsuji-maker .hj-swatch img { width:36px; height:36px; }
.hitsuji-maker .hj-swatch span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.hitsuji-maker .hj-swatch:hover { background:var(--surface); }
.hitsuji-maker .hj-swatch[aria-pressed="true"] { border-color:var(--accent); background:var(--surface); color:var(--accent-hi, var(--accent)); }
.hitsuji-maker .hj-edit-note { margin:4px 0 0; color:var(--sub); font-size:11px; line-height:1.5; }
.hitsuji-maker .hj-clear { display:block; margin:8px auto 4px; padding:6px 12px; border:0; background:none; color:var(--sub); font:600 12px "Noto Sans JP",sans-serif; text-decoration:underline; cursor:pointer; }
.hitsuji-maker .hj-clear:disabled { opacity:.35; cursor:default; text-decoration:none; }
@media (max-width:420px) { .hitsuji-maker .hj-add { font-size:13px; gap:4px; padding:6px 4px; } .hitsuji-maker .hj-add-icon { width:26px; height:26px; } .hitsuji-maker .hj-swatch img { width:32px; height:32px; } }

/* Pro の塗り方(ペンキ)の見本の角の札 */
.hitsuji-maker .thumb { position:relative; }
.hitsuji-maker .hj-corner-pro.td-pro-badge { position:absolute; top:4px; right:4px; width:18px; height:18px; pointer-events:none; }
