/* ネオン素材メーカー。画面の枠は水文字メーカー(water-maker.css)、形を選ぶ画面は shape-picker.css と同じで、ここはネオン素材だけの見た目。
   部品の形はドット素材メーカー(pixel-maker.css)の段階ボタン・色の並びにそろえ、色の丸と目盛りはネオン文字メーカー(neon-maker.css)のように光らせる */

/* キャンバスは透明に描く(保存は透過PNG)。画面では、ネオンが映える夜の壁の色にする(明るい画面でも、ネオンは暗い所で見せる) */
.neonicon-maker .stage { background:#14111c; touch-action:manipulation; }
.neonicon-maker .stage .stage-label { box-shadow:0 1px 4px rgba(0,0,0,.25); }
.neonicon-maker .stage .hint, .neonicon-maker .stage .tap-hint { color:#ece8ff; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.neonicon-maker .stage.tappable { cursor:pointer; user-select:none; -webkit-user-select:none; }
.neonicon-maker .stage:focus-visible { outline:2px solid var(--accent); outline-offset:-4px; }
.neonicon-maker .stage.ni-tappable .stage-label { display:inline-flex; align-items:center; gap:6px; }
.neonicon-maker .stage.ni-tappable .stage-label::before { content:'touch_app'; font-family:'Material Symbols Rounded'; font-size:14px; font-weight:400; line-height:1; }

/* 明るさの目盛り(いまの段階と上限)。点いている目盛りは、ネオンのように光る */
.ni-meter { display:inline-flex; gap:3px; align-items:center; margin-left:2px; }
.ni-meter span { width:6px; height:6px; border-radius:50%; background:rgba(127,120,140,.45); }
.ni-meter span.is-on { background:#fff; box-shadow:0 0 4px #fff, 0 0 8px rgba(255,255,255,.8); }
.maker-theme-light .ni-meter span.is-on { background:var(--accent); box-shadow:0 0 4px var(--accent); }

/* かたち・明るさ・線のタブ(数に合わせて等分) */
.neonicon-maker .ni-tabs { display:grid; grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); gap:6px; margin-bottom:12px; }
.neonicon-maker .ni-tabs .chip { width:100%; min-height:44px; padding-left:4px; padding-right:4px; }
.neonicon-maker .ni-note { margin:0 0 10px; color:var(--sub); font-size:12px; line-height:1.5; text-align:center; }

/* 見本の帯(かたち・線)。選んだ形で描いたネオンを等分に並べる。見本の地もキャンバスと同じ夜の色 */
.neonicon-maker .ni-choice { min-width:0; margin-bottom:12px; }
.neonicon-maker .ni-choice h2 { margin:0 0 6px; }
.neonicon-maker .ni-choice .thumb { min-width:0; height:108px; }
.neonicon-maker .ni-choice .thumb-name { font-size:12px; white-space:nowrap; }
.neonicon-maker .thumb > .thumb-canvas { background:#14111c; border-radius:8px; }
.neonicon-maker .thumb > .thumb-canvas img { object-fit:contain; }
@media (max-width:420px) { .neonicon-maker .ni-choice .thumb { height:96px; } .neonicon-maker .ni-choice .thumb-name { font-size:11px; } }

/* 段階名のボタン(管の太さ・明るさ・線の種類など)。数に合わせて等分。図は上に */
.neonicon-maker .ni-options { display:grid; grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); gap:6px; }
.neonicon-maker .ni-option { border-radius:14px; display:flex; align-items:center; justify-content:center; width:100%; height:auto; min-height:44px; padding:6px 2px; white-space:nowrap; }
.neonicon-maker .ni-option.has-icon { min-height:64px; flex-direction:column; gap:6px; padding:8px 2px 6px; }
@media (max-width:420px) { .neonicon-maker .ni-option { font-size:11px; } }

/* 線の「あいだ」と「角」のボタンの図(ネオン文字メーカーと同じ)。線は今の色(currentColor)で描く */
.ni-gap-icon { display:inline-flex; align-items:center; justify-content:center; padding:var(--gap); border:2px solid currentColor; border-radius:3px; opacity:.85; }
.ni-gap-text { display:block; width:10px; height:8px; border-radius:2px; background:currentColor; opacity:.55; }
.ni-corner-icon { display:block; width:26px; height:16px; border:2px solid currentColor; opacity:.85; }
.ni-option[aria-pressed="true"] .ni-gap-icon, .ni-option[aria-pressed="true"] .ni-corner-icon { color:var(--accent); opacity:1; }

/* ネオンの色の丸。1列に並べ、入りきらなければ横にスクロールする。選んだ色は、その色で光る */
.neonicon-maker .ni-color-name { display:flex; justify-content:center; margin:2px 0 8px; }
.neonicon-maker .ni-color-name b { font-size:17px; }
.neonicon-maker .ni-palette { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; padding:6px 4px 12px; }
.neonicon-maker .ni-dot { flex:0 0 auto; width:40px; height:40px; padding:0; border-radius:50%; border:2px solid rgba(255,255,255,.25); background:var(--dot); cursor:pointer; box-shadow:none; }
.neonicon-maker .ni-dot[aria-pressed="true"] { border-color:#fff; box-shadow:0 0 0 3px var(--accent), 0 0 14px var(--dot); }
.neonicon-maker.theme-light .ni-dot { border-color:rgba(0,0,0,.14); }
.neonicon-maker.theme-light .ni-dot[aria-pressed="true"] { border-color:#fff; }
.neonicon-maker .ni-dot:focus-visible { outline:3px solid #fff; outline-offset:3px; }
