/* ゆき文字メーカー。画面の枠は水文字メーカー(water-maker.css)、舞台とパネルの部品は3D文字メーカー(solid-maker.css)と同じで、ここはゆき文字だけの見た目(作りはコケ文字メーカーの moss-maker.css と同じ) */

/* 雪を「自分で」つけるとき: キャンバスをなぞって、雪を積もらせる・はらう(スクロールや選択と取り合わない) */
.snow-maker .stage.snow-paint { cursor:crosshair; touch-action:none; -webkit-tap-highlight-color:transparent; outline:3px dashed rgba(150,200,240,.8); outline-offset:-3px; }
.snow-maker .stage.snow-paint canvas { user-select:none; -webkit-user-select:none; }
/* スライダーの色は、氷の青 */
.snow-maker .solid-slider { accent-color:#4b9fd8; }
/* 1つだけ置くボタン(積もり方を変える・なぞった分をもどす)は、まんなかに */
.snow-maker .snow-row { display:flex; justify-content:center; margin:10px 0 2px; }
/* ボタン2つを同じ幅で横に並べる(積もり方を変える・ゆらす / やり直す) */
.snow-maker .snow-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0 2px; }
.snow-maker .snow-pair .snow-single { width:100%; min-width:0; white-space:nowrap; }
/* やり直すは、ほかの操作と区切る */
.snow-maker .snow-reset { margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.1); }
.snow-maker .snow-reset .snow-pair { margin-top:6px; }
/* 暗い画面(初めの値): 舞台は、雪の夜の空のような深い青。白い雪と降る雪がよく見える */
.snow-maker.theme-dark .stage { background:radial-gradient(120% 90% at 50% 35%, #34507c 0%, #1e3157 55%, #111c36 100%); }
.snow-maker.theme-dark .stage .hint, .snow-maker.theme-dark .stage .tap-hint { color:#e6eefa; text-shadow:0 0 6px rgba(0,0,0,.7), 0 0 2px rgba(0,0,0,.6); }
.snow-maker.theme-dark .stage .hint.is-action { color:#3a2f40; text-shadow:none; }
/* 色の丸(文字の色・雪の色)は数が少ないので、まんなかに寄せる(はみ出す幅のときは、左から並べて横にスクロール) */
.snow-maker .solid-palette { justify-content:safe center; }
/* アイコン: タブは文字の上に、ボタンは文字の左に添える(全部には付けない) */
.snow-maker .snow-ic { font-size:18px; flex:0 0 auto; }
.snow-maker .solid-tabs .snow-tab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; height:auto; min-height:54px; padding-top:5px; padding-bottom:5px; line-height:1.2; }
.snow-maker .solid-tabs .snow-tab .snow-ic { font-size:20px; }
.snow-maker .solid-options .solid-option, .snow-maker .snow-single { gap:5px; }
.snow-maker .snow-single { display:inline-flex; align-items:center; justify-content:center; }
/* 効果の選ぶボタン(かざり・空と影): 絵を文字の上に置く。絵の高さをそろえて、文字の位置がずれないようにする */
.snow-maker .solid-option.has-icon { min-height:66px; gap:2px; }
.snow-maker .solid-option.has-icon > .snow-ic { display:flex; align-items:center; justify-content:center; height:28px; font-size:24px; }
.snow-maker .solid-option.has-icon > .snow-ic.is-many { gap:0; } .snow-maker .solid-option.has-icon > .snow-ic.is-many .snow-ic { font-size:15px; }
.snow-maker .solid-option[aria-pressed="true"] > .snow-ic { color:var(--accent-hi); }
/* 明るい画面: 白い雪が見えるように、舞台は うすい空色 */
.snow-maker.theme-light .stage { background:linear-gradient(180deg, #cfe3f6 0%, #e4eff9 100%); }
/* 雪を「自分で」つける筆の見た目(雲から雪が降る / ほうき)。キャンバスの上に重ねるだけで、作品には描かない */
@media (hover:hover) and (pointer:fine) { .snow-maker .stage.snow-paint { cursor:none; } }
.snow-maker .snow-cursor { position:absolute; left:0; top:0; z-index:3; pointer-events:none; transform-origin:50% 100%; transition:width .12s, height .12s; filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.snow-maker .snow-cursor svg { display:block; width:100%; height:100%; }
.snow-maker .snow-cursor[data-mode="pile"] { animation:snow-cloud-float 2.4s ease-in-out infinite; }
.snow-maker .snow-cursor[data-mode="sweep"] { transform-origin:70% 10%; transition:transform .08s ease-out, width .12s, height .12s; }
.snow-maker .snow-cursor-flake { position:absolute; z-index:2; width:var(--d); height:var(--d); margin:calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius:50%; background:#fff; box-shadow:0 0 3px rgba(255,255,255,.8); pointer-events:none; animation:snow-cursor-fall .7s ease-in forwards; }
.snow-maker .snow-cursor-flake.is-puff { animation:snow-cursor-puff .45s ease-out forwards; opacity:.85; }
@keyframes snow-cursor-fall { from { transform:translate(0, 0); opacity:1; } 85% { opacity:1; } to { transform:translate(var(--drift), var(--fall)); opacity:0; } }
@keyframes snow-cursor-puff { from { transform:translate(0, 0) scale(1); opacity:.9; } to { transform:translate(var(--drift), var(--fall)) scale(.4); opacity:0; } }
@keyframes snow-cloud-float { 0%, 100% { margin-top:0; } 50% { margin-top:-3px; } }
@media (prefers-reduced-motion: reduce) { .snow-maker .snow-cursor[data-mode="pile"] { animation:none; } }
.snow-maker.theme-light .snow-reset { border-top-color:rgba(0,0,0,.1); }
