/* 絵文字・アイコンを選ぶ素材メーカー共通の「かたち」(maker/puffy/puffyShapePicker.ts)。ページの section に shape-maker を付ける */
/* 素材メーカー(ぷっくり・ゼリー・もちもち・ドット): 形を選ぶ(絵文字・アイコンの切り替え、検索、並べた形) */
.shape-maker .shape-picker { display:flex; flex-direction:column; gap:10px; }
.shape-maker .shape-tabs { gap:8px; }
.shape-maker .shape-tabs .chip { min-width:104px; }
.shape-maker .shape-search { display:flex; align-items:center; gap:6px; height:44px; padding:0 14px; border:2px solid var(--line); border-radius:999px; background:var(--surface); color:var(--sub); }
.shape-maker .shape-search:focus-within { border-color:var(--accent-hi); }
.shape-maker .shape-search .ms { font-size:20px; }
.shape-maker .shape-search-input { flex:1; min-width:0; height:100%; border:0; outline:0; background:transparent; color:var(--text); font:700 15px "Noto Sans JP",sans-serif; }
.shape-maker .shape-search-input::placeholder { color:var(--sub); font-weight:500; }
.shape-maker .shape-search-input::-webkit-search-cancel-button { filter:invert(1) opacity(.6); }
.shape-maker .shape-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(52px, 1fr)); align-items:start; gap:6px; max-height:184px; overflow-y:auto; padding:2px; overscroll-behavior:contain; }
.shape-maker .shape-tile { display:grid; place-items:center; aspect-ratio:1; padding:0; border:2px solid transparent; border-radius:14px; background:#f6eef2; cursor:pointer; transition:transform .12s var(--lm-bounce, ease), border-color .12s; }
.shape-maker .shape-tile img { width:66%; height:66%; object-fit:contain; pointer-events:none; }
.shape-maker .shape-tile:active { transform:scale(.92); }
.shape-maker .shape-tile[aria-pressed="true"] { border-color:var(--accent-hi); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent-hi) 35%, transparent); transform:scale(1.04); }
.shape-maker .shape-tile:focus-visible { outline:3px solid var(--accent-hi); outline-offset:2px; }
.shape-maker .shape-more { grid-column:1 / -1; display:flex; align-items:center; justify-content:center; gap:4px; height:44px; margin-top:2px; border:2px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); font:700 14px "Noto Sans JP",sans-serif; cursor:pointer; }
.shape-maker .shape-more[hidden] { display:none; }
.shape-maker .shape-more .ms { font-size:20px; }
.shape-maker .shape-more:disabled { opacity:.6; cursor:progress; }
.shape-maker .shape-more:focus-visible { outline:3px solid var(--accent-hi); outline-offset:2px; }
.shape-maker .shape-status { margin:0; font-size:12.5px; color:var(--sub); text-align:center; }
.shape-maker .shape-picker .btn-main { margin-top:2px; }
@media (min-width:720px) {
  .shape-maker .shape-grid { grid-template-columns:repeat(auto-fill, minmax(60px, 1fr)); max-height:220px; }
}
@media (prefers-reduced-motion: reduce) { .shape-maker .shape-tile { transition:none; } }
@media (min-width:900px) and (min-height:520px) {
  /* 右の列の中に、一覧・「この形にする」・効果音の切り替えまで収める(列と一覧の両方がスクロールしないように) */
  .shape-maker.lm-side .shape-grid { max-height:calc(100vh - 430px); min-height:180px; }
}
