/* ネオン文字メーカー。カード・選択肢・タブは縁文字メーカー(outline-maker.css)と共通で、ここは明るさの目盛り・タップで光らせる見本・点くときのちらつきだけ */
.nm-tabs { display: flex; }
.nm-tabs > .om-tab { flex: 1 1 0; min-width: 0; }
.nm-note { margin: 0; color: var(--sub); font-size: 12px; line-height: 1.6; }
/* かたちは2つだけなので、幅いっぱいに2等分する(右に余白を空けない) */
#lm .om-options.nm-shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
#lm .nm-shapes .om-opt { width: auto; }
.nm-chips { flex-wrap: wrap; }
/* 線の場所は4つ。スマホ幅でも横にはみ出さず1列に並べる */
#lm .om-options.nm-lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
#lm .nm-lines .om-opt { width: auto; min-width: 0; }

/* 見本の文字をタップすると明るさが変わる */
#lm .stage.nm-tappable { cursor: pointer; user-select: none; -webkit-user-select: none; }
#lm .stage.nm-tappable:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
#lm .stage.nm-tappable .stage-label { display: inline-flex; align-items: center; gap: 6px; }
#lm .stage.nm-tappable .stage-label::before { content: 'touch_app'; font-family: 'Material Symbols Rounded'; font-size: 14px; font-weight: 400; line-height: 1; }

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

/* 点くときのちらつき(ネオン管が「ジジッ」と点く) */
#lm .stage-art.nm-flicker { animation: nm-flicker .5s steps(1, end) both; }
@keyframes nm-flicker {
  0% { opacity: .25; }
  12% { opacity: 1; }
  20% { opacity: .35; }
  32% { opacity: 1; }
  44% { opacity: .6; }
  56%, 100% { opacity: 1; }
}

@media (max-width: 719px) {
  .nm-tabs .om-tab .tool-name { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  #lm .stage-art.nm-flicker { animation: none; }
}

/* 見本のキャンバスは画面と同じ縦横比で、画面いっぱいに描く(光が画面の端まで広がる。文字の大きさはデコ文字メーカーと同じ) */
.nm-lm .stage canvas { max-width: 100%; max-height: 100%; }

/* 線の「あいだ」と「角」のボタンの図。線は今の色(currentColor)で描く */
.nm-gap-icon { display: inline-flex; align-items: center; justify-content: center; padding: var(--gap); border: 2px solid currentColor; border-radius: 3px; opacity: .85; }
.nm-gap-text { display: block; width: 10px; height: 8px; border-radius: 2px; background: currentColor; opacity: .55; }
.nm-corner-icon { display: block; width: 26px; height: 16px; border: 2px solid currentColor; opacity: .85; }
.om-direction[aria-pressed="true"] .nm-gap-icon, .om-direction[aria-pressed="true"] .nm-corner-icon { color: var(--accent); opacity: 1; }
/* 段階のボタンの行は、見出しの幅をそろえて、ボタンの左端を縦にそろえる */
#lm .nm-chips > .om-field-label { flex: 0 0 4.2em; }
