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

/* キャンバスは透明に描く(保存は透過PNG)。画面では、石と星が映える黒に近い地にする(明るい画面でも、石は暗い所で見せる) */
.rhinestone-maker .stage { background:radial-gradient(ellipse at 50% 45%, #1d1a26 0%, #0b0a10 75%); touch-action:manipulation; }
.rhinestone-maker .stage .stage-label { box-shadow:0 1px 4px rgba(0,0,0,.25); }
.rhinestone-maker .stage .hint, .rhinestone-maker .stage .tap-hint { color:#ece8ff; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.rhinestone-maker .stage.tappable { cursor:pointer; user-select:none; -webkit-user-select:none; }
.rhinestone-maker .stage.rs-tappable .stage-label { display:inline-flex; align-items:center; gap:6px; }
.rhinestone-maker .stage.rs-tappable .stage-label::before { content:'touch_app'; font-family:'Material Symbols Rounded'; font-size:14px; font-weight:400; line-height:1; }

/* 星をつけた回数の目盛り。済んだ目盛りは、石のように光る */
.rs-meter { display:inline-flex; gap:3px; align-items:center; margin-left:2px; }
.rs-meter span { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.35); }
.rs-meter span.is-on { background:radial-gradient(circle at 35% 35%, #fff 0 25%, #c9d2e4 45%, #7d879c 100%); box-shadow:0 0 4px rgba(255,255,255,.8); }

/* 効果のタブ(数に合わせて等分) */
.rhinestone-maker .rs-tabs { display:grid; grid-template-columns:repeat(var(--n, 4), minmax(0, 1fr)); gap:6px; margin-bottom:12px; }
.rhinestone-maker .rs-tabs .chip { width:100%; min-height:44px; padding-left:2px; padding-right:2px; }
.rhinestone-maker .rs-note { margin:8px 0 10px; color:var(--sub); font-size:12px; line-height:1.5; text-align:center; }

/* 見本の帯(書体・ならべ方)。見本の地もキャンバスと同じ黒 */
.rhinestone-maker .rs-choice { min-width:0; margin-bottom:12px; }
.rhinestone-maker .rs-choice h2 { margin:0 0 6px; }
.rhinestone-maker .rs-choice .thumb { min-width:0; height:108px; }
.rhinestone-maker .rs-choice .thumb-name { font-size:12px; white-space:nowrap; }
.rhinestone-maker .thumb > .thumb-canvas { background:#100e16; border-radius:8px; }
.rhinestone-maker .thumb > .thumb-canvas img { object-fit:contain; }
@media (max-width:420px) { .rhinestone-maker .rs-choice .thumb { height:96px; } .rhinestone-maker .rs-choice .thumb-name { font-size:11px; } }

/* 段階名のボタン(つぶ・きらめき・台座)。数に合わせて等分。図は上に */
.rhinestone-maker .rs-options { display:grid; grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); gap:6px; }
.rhinestone-maker .rs-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; }
.rhinestone-maker .rs-option.has-icon { min-height:68px; flex-direction:column; gap:6px; padding:8px 2px 6px; }
.rhinestone-maker .rs-option-icon { width:30px; height:30px; flex:0 0 auto; }
.rhinestone-maker .rs-option[aria-pressed="true"] .rs-option-icon { color:var(--accent); }
@media (max-width:420px) { .rhinestone-maker .rs-option { font-size:11px; } .rhinestone-maker .rs-option-icon { width:26px; height:26px; } }

/* 石の色の丸。折り返して並べる。選んだ色は、まわりに輪 */
.rhinestone-maker .rs-color-name { display:flex; justify-content:center; margin:2px 0 8px; }
.rhinestone-maker .rs-color-name b { font-size:17px; }
.rhinestone-maker .rs-palette { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; padding:6px 4px 4px; }
.rhinestone-maker .rs-dot { position:relative; flex:0 0 auto; width:38px; height:38px; padding:0; border-radius:50%; border:2px solid rgba(255,255,255,.25); background:var(--dot); cursor:pointer; box-shadow:none; overflow:hidden; }
/* 丸の中に、石の光の点 */
.rhinestone-maker .rs-dot::after { content:""; position:absolute; left:22%; top:20%; width:30%; height:18%; border-radius:50%; background:rgba(255,255,255,.75); transform:rotate(-40deg); }
.rhinestone-maker .rs-dot[aria-pressed="true"] { border-color:#fff; box-shadow:0 0 0 3px var(--accent); }
.rhinestone-maker.theme-light .rs-dot { border-color:rgba(0,0,0,.14); }
.rhinestone-maker.theme-light .rs-dot[aria-pressed="true"] { border-color:#fff; }
.rhinestone-maker .rs-dot:focus-visible { outline:3px solid #fff; outline-offset:3px; }

/* ふちの石・なかの石の切り替え(ドット文字メーカーのグラデの「はじめ・おわり」と同じ形) */
.rhinestone-maker .rs-ends { display:grid; grid-template-columns:repeat(var(--n, 2), minmax(0, 1fr)); gap:8px; margin:0 0 10px; }
.rhinestone-maker .rs-end { display:flex; align-items:center; justify-content:flex-start; gap:6px; min-height:48px; min-width:0; padding:4px 8px; border-radius:14px; text-align:left; }
.rhinestone-maker .rs-end-swatch { flex:0 0 auto; width:26px; height:26px; border-radius:50%; border:1px solid rgba(0,0,0,.18); background:var(--dot); }
.rhinestone-maker .rs-end-swatch.is-line { border-radius:7px; }
.rhinestone-maker .rs-star-edit { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0 0; }
.rhinestone-maker .rs-star-edit .chip { min-height:44px; justify-content:center; }
.rhinestone-maker .rs-star-edit .chip:disabled { opacity:.4; }
.rhinestone-maker .rs-end-text { display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.rhinestone-maker .rs-end-text small { font-size:11px; opacity:.7; }
.rhinestone-maker .rs-end-text b { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
