/* r20（2026-10-22）：右上の「遊び方」「チュートリアル」ボタン、ステージ1の案内、体験型チュートリアル、結果画面の前の柔らかい光。
   今までの見た目（ボタンの地・ふち・影）はそのまま使い、位置と文字だけを足す。いちばん最後に読む */

/* 右上：「遊び方」の下に「チュートリアル」。ボタンの見た目は今の丸いボタン（.iconbtn）と同じ地・ふち・影 */
.helpstack { grid-column: 3; grid-row: 1; justify-self: end; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.helpstack .iconbtn.helptext {
  width: auto; height: auto; min-width: 76px; padding: 4px 9px 5px; border-radius: 11px;
  font: 800 12px/1.15 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap;
}
@media (max-width: 720px) {
  .helpstack { gap: 3px; }
  .helpstack .iconbtn.helptext { min-width: 72px; padding: 3px 7px 4px; font-size: 11px; border-radius: 10px; }
}

/* ステージ1の案内：ボタンが3回ふわっと光る＋指マーク＋「まずはここを見てね！」 */
#tutorialBtn.tut-blink { animation: tut-blink .5s ease-in-out 6 alternate; }
@keyframes tut-blink {
  from { filter: none; transform: scale(1); }
  to { filter: brightness(1.18) drop-shadow(0 0 6px #ffe27a) drop-shadow(0 0 10px #ffb8e0); transform: scale(1.08); }
}
.tut-hint { position: fixed; z-index: 9200; pointer-events: none; display: flex; align-items: center; gap: 2px; transform: translateY(-50%);
  animation: tut-hint-in .35s ease-out both, tut-hint-out .4s ease-in 3.2s forwards; }
.tut-hint-text { padding: 5px 10px 6px; border-radius: 999px; background: #fffaf0; color: #6b3f78; font: 800 12px/1.2 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  box-shadow: 0 0 0 2px #f3c7ea, 0 3px 8px #3a1f4a55; white-space: nowrap; }
.tut-hint-finger { font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 2px #3a1f4a66); animation: tut-poke .6s ease-in-out infinite alternate; }
@keyframes tut-poke { from { transform: translateX(-3px); } to { transform: translateX(4px); } }
@keyframes tut-hint-in { from { opacity: 0; transform: translate(-8px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes tut-hint-out { to { opacity: 0; } }

/* チュートリアル中：上の段（タイトル・STAGE・GOAL・手数）の上に説明のカードを重ねる。盤面はふさがない */
body.tut-on .hud { visibility: hidden; }
.tut-panel {
  position: fixed; z-index: 9100; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); transform: translateX(-50%);
  width: min(520px, calc(100vw - 20px)); box-sizing: border-box; padding: 10px 14px 12px; border-radius: 18px;
  background: linear-gradient(#fffaf2, #fff1df); color: #5b3a2c; box-shadow: 0 0 0 3px #f3dcae, 0 6px 16px #10123366;
  display: grid; gap: 6px; text-align: center;
}
.tut-step { font: 800 12px/1.2 'Hiragino Maru Gothic ProN', system-ui, sans-serif; color: #a0662f; letter-spacing: .05em; }
.tut-msg { font: 900 18px/1.35 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, sans-serif; color: #6b3f78; text-wrap: balance; }
.tut-panel.done .tut-msg { font-size: 22px; color: #c2477f; }
.tut-btns { display: flex; justify-content: center; gap: 10px; }
.tut-btns button { font: 800 13px/1 'Hiragino Maru Gothic ProN', system-ui, sans-serif; padding: 8px 14px; border-radius: 999px; border: 2px solid #f3dcae;
  background: linear-gradient(#fff6e3, #f1dfbd); color: #6b4b38; box-shadow: 0 2px 0 #b8925d; cursor: pointer; }
.tut-panel.done .tut-quit { background: linear-gradient(#ff9fcf, #e8579f); color: #fff; border-color: #fff; box-shadow: 0 3px 0 #b03d78; font-size: 15px; padding: 10px 20px; }
@media (max-width: 720px) { .tut-msg { font-size: 16px; } .tut-panel { padding: 8px 12px 10px; } }
/* r30：チュートリアルの終わり＝オレンジの案内プレートの絵（tutorial/plate-done.png、1530×385）。
   「ゲームにもどる」は今までのボタンを、絵のピンクのボタン（左 32.09%・上 65.97%・幅 35.56%・高さ 29.61%）にぴったり重ねる */
.tut-end[hidden] { display: none; }
.tut-panel.plate { width: min(560px, calc(100vw - 16px)); padding: 0; background: none; box-shadow: none; }
.tut-panel.plate > .tut-step, .tut-panel.plate > .tut-msg, .tut-panel.plate > .tut-btns { display: none; }
/* プレートの外側は透明なので、今までのクリーム色の枠の下に隠れていた上の段（ロゴ・遊び方・ステージ）が、すき間から少しのぞかないようにする（終わりの画面の間だけ） */
body.tut-end-on .brand-logo, body.tut-end-on .topbar .brand, body.tut-end-on .helpstack, body.tut-end-on .stagebar { visibility: hidden; }
.tut-end { position: relative; }
.tut-end img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px #10123355); }
.tut-panel.done .tut-end .tut-quit { position: absolute; left: 32.09%; top: 65.97%; width: 35.56%; height: 29.61%; margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none; color: transparent; font-size: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tut-panel.done .tut-end .tut-quit:active { background: #ffffff38; }
.tut-panel.done .tut-end .tut-quit:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
/* r41（2026-11-01）：オレンジのプレートが出た時に、1回だけ控えめにキラッ。
   斜めの細い光の帯が左から右へ1回すべる（約0.9秒、出てから0.25秒後）。光はプレートの絵の形（透明な所は光らない）で切り抜く。
   絵・形・色・文字・大きさ・位置・ボタンの押せる範囲は変えない（上に重ねるだけ、押す操作はさえぎらない）。動きを減らす設定では出さない（app.mjs） */
.tut-end.shine::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url('tutorial/plate-done.png') center / 100% 100% no-repeat; mask: url('tutorial/plate-done.png') center / 100% 100% no-repeat;
  background: linear-gradient(105deg, #fff0 38%, #fffbe6a6 47%, #ffffffd9 50%, #fffbe6a6 53%, #fff0 62%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; opacity: 0;
  animation: tut-end-shine .9s cubic-bezier(.4, 0, .2, 1) .25s 1 both;
}
@keyframes tut-end-shine {
  0% { background-position: 100% 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { background-position: 0% 0; opacity: 0; }
}
/* 指マーク（押す所をトントン・ドッキングはスーッ）。押す操作はさえぎらない */
.tut-finger { position: fixed; z-index: 9150; pointer-events: none; font-size: 40px; line-height: 1; margin: -6px 0 0 -10px;
  filter: drop-shadow(0 3px 3px #3a1f4a88); transition: opacity .2s; }
.tut-finger[hidden] { display: none; }

/* 結果画面の前の柔らかい光（真っ白のフラッシュではなく、クリーム色の光が真ん中からふわっと広がって消える。約0.3秒で明るさがいちばん上） */
.result-glow { position: fixed; inset: -20%; z-index: 9400; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 46%, #fffdf6f2 0%, #fff4dccc 26%, #ffe6c48c 46%, #ffd9b84d 62%, #ffd9b800 78%);
  animation: result-glow .8s cubic-bezier(.22,.8,.3,1) forwards; }
@keyframes result-glow { 0% { opacity: 0; transform: scale(.45); } 38% { opacity: .92; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.35); } }
.result-glow.calm { animation: result-glow-calm .8s ease-out forwards; }
@keyframes result-glow-calm { 0% { opacity: 0; } 38% { opacity: .8; } 100% { opacity: 0; } }

/* r22（2026-10-28）：説明カード・OK！の絵・指マークの絵 */
.tut-card { display: block; width: 100%; height: auto; max-height: min(24vh, 12.5svh, 100px); object-fit: contain; margin: 0 auto; } /* r23：盤面の一番上の段にかからない高さ */
.tut-card[hidden] { display: none; }
/* r38（2026-11-01）：STEP1〜3 の説明カードを同じ倍率に。
   原因：3枚とも横 900px だが縦が 302・313・355px と違い、上の「高さの上限＋contain」だと縦長の絵ほど小さく描かれていた（390×844 で STEP2＝96%、STEP3＝85%）。
   直し方：幅を「STEP1 が今まで描かれていた幅」（上限の高さ × 900/302、パネルの幅まで）に3枚とも固定し、高さは絵の縦横比のまま。STEP1 の大きさ・位置は今までと同じ。
   STEP2・3 は絵の上下の透明な行（STEP2：上 2・下 2、STEP3：上 17・下 14。絵は変えない）だけ負の余白で詰め、カードの高さが増えすぎないようにする。
   ％の余白は幅と同じくパネルの幅が基準なので、幅と同じ式で計算できる */
.tut-card { --tc-w: min(100%, calc(min(24vh, 12.5svh, 100px) * 900 / 302)); width: var(--tc-w); max-height: none; object-fit: fill; }
.tut-card[src$="step2-card.png"] { margin-top: calc(var(--tc-w) * -2 / 900); margin-bottom: calc(var(--tc-w) * (-2 - 3.5) / 900); }
.tut-card[src$="step3-card.png"] { margin-top: calc(var(--tc-w) * -17 / 900); margin-bottom: calc(var(--tc-w) * (-14 - 11) / 900); }
/* それでも STEP2・3 は絵（文字のある所）が STEP1 より 7・22 行ぶん縦に長い。パネル全体の高さが STEP1 と同じになるように
   （盤面の一番上の段にかからないように）、その分をカードとボタンの間・ボタンの下で半分ずつ詰める（文字の位置・大きさは変えない）。
   下の式の幅＝カードの幅（パネルの中の幅 min(520px, 100vw−20px)−24px と、上限の高さ×900/302 の小さい方） */
.tut-panel:has(> .tut-card[src$="step2-card.png"]:not([hidden])) { --tc-cut: 3.5; }
.tut-panel:has(> .tut-card[src$="step3-card.png"]:not([hidden])) { --tc-cut: 11; }
.tut-panel:has(> .tut-card[src$="-card.png"]:not([hidden])) > .tut-btns {
  margin-bottom: calc(min(calc(min(520px, 100vw - 20px) - 24px), calc(min(24vh, 12.5svh, 100px) * 900 / 302)) * var(--tc-cut, 0) / -900);
}
.tut-msg:empty { display: none; }
.tut-finger { font-size: 0; margin: -8px 0 0 -14px; }
.tut-finger img { width: 54px; height: auto; display: block; }
.tut-ok { position: fixed; z-index: 9200; left: 50%; top: 50%; width: min(78vw, 420px); transform: translate(-50%, -50%); pointer-events: none; }
.tut-ok[hidden] { display: none; }
.tut-ok img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 10px #3a1f4a66); }
.tut-ok.show img { animation: tut-ok-pop .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes tut-ok-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.tut-fingerpick { font-size: 11px !important; padding: 6px 10px !important; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .tut-ok.show img { animation: none; } }
/* r23（2026-10-30）：チュートリアルの前の案内（黒40%の幕＋「遊び方を教えるよ！」の絵、「はじめる」に透明のボタン） */
.tut-intro { position: fixed; inset: 0; z-index: 9300; background: rgba(0, 0, 0, .4); display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.tut-intro-box { position: relative; width: min(92vw, 560px, calc(82vh * 760 / 687)); }
.tut-intro-box img { display: block; width: 100%; height: auto; animation: tut-ok-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.tut-intro-go { position: absolute; left: 7%; top: 75%; width: 86%; height: 23%; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 40px; -webkit-tap-highlight-color: transparent; }
.tut-intro-go:focus-visible { outline: 3px solid #fff; }
@media (prefers-reduced-motion: reduce) { .tut-intro-box img { animation: none; } }
/* r28（2026-10-31）：ステージ11のキャンディの練習。3匹（見るだけ・押す操作はさえぎらない）と吹き出し、キャンディにキラキラ
   r29：3匹を盤面の上に（前足を盤面のふちにかけて、キャンディを見下ろす）。吹き出しは3匹のすぐ下（しっぽは上の3匹へ。キャンディの段にはかからない） */
.candy-tut { position: fixed; z-index: 9040; pointer-events: none; transform: translateX(-50%); }
.candy-tut-dogs { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 6px #3a1f4a40); animation: candy-dogs-in .55s cubic-bezier(.2, 1.25, .4, 1) both; }
@keyframes candy-dogs-in { from { opacity: 0; transform: translateY(-12%); } to { opacity: 1; transform: none; } }
/* r30：いつもの文は紫の案内プレートの絵（幅 --sayw は app.mjs の candyPlace が決める。縦横比はそのまま）。「おしい！」の時だけ .txt で今までの吹き出し */
.candy-tut-say { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: var(--sayw, min(calc(100vw - 16px), 400px)); opacity: 0; }
.candy-tut-say img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 6px #3a1f4a40); }
/* r37：クリアの決まりの絵（提供画像そのまま）。幅 --rulew は candyPlace が決める（絵の上の透明な余白 26/724 の分だけ上へ寄せ、プレートと同じ 8px のすき間に見せる） */
.candy-tut-say.rule { width: var(--rulew, min(calc(100vw - 16px), 400px)); top: calc(100% + 8px - var(--rulew, 360px) * 26 / 2172); }
.candy-tut-say.txt { top: calc(100% + 10px); width: max-content; max-width: min(calc(100vw - 24px), 380px); box-sizing: border-box;
  padding: 8px 16px 9px; border-radius: 18px; background: #fffaf2; color: #6b3f78; text-align: center; text-wrap: balance;
  font: 900 16px/1.35 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, sans-serif; box-shadow: 0 0 0 3px #f3dcae, 0 4px 10px #3a1f4a55; }
.candy-tut-say.txt::after { content: ''; position: absolute; left: 50%; top: -8px; width: 15px; height: 15px; margin-left: -7.5px; background: #fffaf2; transform: rotate(45deg); box-shadow: -3px -3px 0 0 #f3dcae; }
/* r30：練習の間だけ、左上の小さな3匹（通常の画面）を隠す。場所・大きさはそのまま（終わると元どおり） */
body.candy-tut-on .mobile-dogs, body.candy-tut-on .mobile-dogs * { visibility: hidden !important; } /* r32：まばたきの絵（中の要素）が透けないように中まで */
.candy-tut.say .candy-tut-say { animation: candy-say-in .4s cubic-bezier(.2, 1.5, .4, 1) forwards; }
@keyframes candy-say-in { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.candy-tut.out { animation: candy-tut-out .45s ease-in forwards; }
@keyframes candy-tut-out { to { opacity: 0; } }
@media (min-width: 721px) { .candy-tut-say.txt { font-size: 18px; } }
/* キャンディ：柔らかく3回光る（明るさだけ。大きさ・位置は変えない） */
#board .tile.coat.candy-focus { animation: candy-focus .9s ease-in-out .35s 3; }
@keyframes candy-focus { 0%, 100% { filter: none; } 50% { filter: brightness(1.3) saturate(1.08) drop-shadow(0 0 5px #fff6c8) drop-shadow(0 0 11px #ffd96a); } }
.candy-glint { position: fixed; z-index: 9045; pointer-events: none; }
.candy-glint i { position: absolute; width: 36%; aspect-ratio: 1; margin: -18% 0 0 -18%; opacity: 0;
  background: radial-gradient(circle, #fff 0 20%, #fff3b0 45%, #ffd24a00 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: candy-twinkle 1.5s ease-in-out infinite; }
.candy-glint i:nth-child(1) { left: 10%; top: 12%; animation-delay: .2s; }
.candy-glint i:nth-child(2) { left: 92%; top: 22%; animation-delay: .65s; width: 28%; margin: -14% 0 0 -14%; }
.candy-glint i:nth-child(3) { left: 84%; top: 90%; animation-delay: 1.05s; }
.candy-glint i:nth-child(4) { left: 14%; top: 86%; animation-delay: .45s; width: 26%; margin: -13% 0 0 -13%; }
.candy-glint i:nth-child(5) { left: 54%; top: -4%; animation-delay: .9s; width: 30%; margin: -15% 0 0 -15%; }
@keyframes candy-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 40% { opacity: 1; transform: scale(1) rotate(40deg); } 70% { opacity: 0; transform: scale(.5) rotate(70deg); } }
@media (prefers-reduced-motion: reduce) { .candy-tut-dogs { animation: none; } .candy-glint i { animation-duration: 3s; } }/* 割れた後：普通のブロックになったキャンディの場所を、やわらかく光らせて見せる（大きさ・位置は変えない） */
#board .tile.candy-done { animation: candy-done .9s ease-in-out both; }
@keyframes candy-done { 0%, 100% { filter: none; } 45% { filter: brightness(1.18) drop-shadow(0 0 6px #fff6c8) drop-shadow(0 0 12px #ffd96a); } }
/* r32（2026-11-01）：ハンマーの使い方（自動デモ）と肉球ゲージの説明（app.mjs の hammerTutShow / hammerGaugeShow） */
/* 1種類だけを光らせる hm-demo-glow は r33 で作り直し（このファイルの最後） */
/* 正式採用のプレート（tutorial/plate-hammer-gauge.webp）。幅・上の位置は app.mjs が決める。縦横比はそのまま。押せない */
.hg-plate { position: fixed; left: 50%; z-index: 9040; pointer-events: none; transform: translateX(-50%); opacity: 0; }
.hg-plate img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px #3a1f4a55); }
.hg-plate.show { animation: hg-in .42s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.hg-plate.out { animation: hg-out .3s ease-in forwards; }
@keyframes hg-in { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes hg-out { from { opacity: 1; transform: translateX(-50%) scale(1); } to { opacity: 0; transform: translateX(-50%) scale(.96); } }
/* 肉球ゲージ・下のハンマーを光らせる（見た目だけ） */
#hammerbar .gauge.tut-glow, #hammerBtn.tut-glow { animation: tut-glow .8s ease-in-out infinite; border-radius: 14px; }
@keyframes tut-glow { 0%, 100% { box-shadow: 0 0 0 0 #ffe08a00; filter: none; } 50% { box-shadow: 0 0 0 3px #ffe08a, 0 0 18px 6px #ffd25acc; filter: brightness(1.12); } }
/* チュートリアルの一覧（ステージ11まで来た人だけ。チュートリアルのボタンから） */
.tut-choose { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: min(78vw, 300px); padding: 4px 4px 2px; }
.tut-choose-title { margin: 0 0 4px; text-align: center; font-weight: 900; font-size: 18px; color: #5b3a6e; }
.tut-choose button { width: 100%; }
/* s21-30 r41（2026-11-13）：チュートリアルの一覧＝受け取ったデザインの絵（1148×1148、枠の外は透明）。
   絵の縦横比はそのまま、画面の幅・高さの内側に収まる大きさ（最大 440px）。今までの白いパネル・×（#close）は出さず、絵の × の上の透明なボタンで閉じる。
   :not(#tm-a)… は style.css の #modal:not(:has(…)) より強くするためだけ */
#modal:has(.tut-menu):not(#tm-a):not(#tm-b):not(#tm-c) {
  width: min(calc(100vw - 24px), calc(100vh - 40px), 440px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
}
@supports (height: 100svh) { #modal:has(.tut-menu):not(#tm-a):not(#tm-b):not(#tm-c) { width: min(calc(100vw - 24px), calc(100svh - 40px), 440px); } }
#modal:has(.tut-menu) #close { display: none; }
#modal:has(.tut-menu) #modalBody { padding: 0; margin: 0; }
.tut-menu { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.tut-menu-art { display: block; width: 100%; height: auto; max-width: none; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; filter: drop-shadow(0 8px 18px #1d16304d); }
.tut-menu .tut-menu-hit, .tut-menu .tut-menu-hit:active {
  position: absolute; display: block; margin: 0; padding: 0; min-height: 0; border: 0; background: transparent; box-shadow: none; color: transparent; font-size: 0;
  border-radius: 9% / 22%; transform: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
/* 位置は絵（1148×1148）の中の行の枠と × に合わせた割合 */
.tut-menu .tmh-basic  { left: 3.6%; top: 22.4%; width: 92.8%; height: 20.8%; }
.tut-menu .tmh-hammer { left: 3.6%; top: 45.4%; width: 92.8%; height: 20.9%; }
.tut-menu .tmh-box    { left: 3.6%; top: 69.2%; width: 92.8%; height: 20.7%; }
.tut-menu .tmh-close  { left: 85.4%; top: 2.6%; width: 11.3%; height: 10.3%; border-radius: 50%; }
.tut-menu .tut-menu-hit:active { background: #5a2a0a1a; } /* 押した時だけ少し暗く（今までの結果画面の絵のボタンと同じ） */
.tut-menu .tut-menu-hit:focus { outline: none; }
.tut-menu .tut-menu-hit:focus-visible { outline: 3px solid #e8892f; outline-offset: -3px; }
/* 木箱：ステージ21まで来ていない人は、行を薄くして押せない（今まで通り木箱の練習は出さない） */
.tut-menu .tmh-locked { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2%; box-sizing: border-box; background: #fff8eecc; cursor: default; }
.tut-menu .tmh-locked b { font: 800 12px/1.2 "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", system-ui, sans-serif; color: #7a4a2a; background: #fffdf6; border-radius: 999px; padding: 3px 10px; box-shadow: 0 1px 3px #0002; }
/* s21-30 r28：チュートリアルの一覧の項目をそろえる（文字の大きさ・太さ・色・余白）。いつもはラベンダー、押している項目（キーボードで選んでいる項目）だけオレンジ（ステージ一覧の「今のステージ」と同じ色） */
.tut-choose .tut-pick {
  display: block; margin: 0; min-height: 52px; padding: 13px 18px; border: 0; border-radius: 15px;
  font: inherit; font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: .02em; text-align: center;
  color: #5b3a6e; background: linear-gradient(#efe6f3, #dccde6); box-shadow: inset 0 1px #fffa, 0 3px #ad94bc;
  cursor: pointer; transition: background .15s, color .15s, transform .08s, box-shadow .08s;
}
@media (hover: hover) { .tut-choose .tut-pick:hover { background: linear-gradient(#f5eef8, #e5d8ee); } }
.tut-choose .tut-pick:active, .tut-choose .tut-pick:focus-visible {
  color: #5a2c14; background: linear-gradient(#ffc676, #efa24c); box-shadow: inset 0 1px 2px #fff0c4, 0 3px #b76d39; outline: none;
}
.tut-choose .tut-pick:active { transform: translateY(2px); box-shadow: inset 0 1px 2px #fff0c4, 0 1px #b76d39; }
/* s21-30 r29：項目の左にゲームの絵（盤面と同じブロック・特殊ピース／ハンマー＋キャンディ／鍵付きの木箱）。文字の見た目は r28 のまま。
   絵の枠の幅を3つで同じにして、文字の始まりをそろえる */
.tut-choose .tut-pick:has(.tut-pick-art) { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px 8px 12px; text-align: left; }
.tut-pick-art { flex: 0 0 72px; height: 44px; position: relative; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tut-pick-label { flex: 1; min-width: 0; }
.tut-pick-art .tpa-tile { position: absolute; width: 34px; height: 34px; border-radius: 8px; transition: none; }
.tut-pick-art .tpa-tile:first-child { left: 2px; top: 8px; transform: rotate(-6deg); }
.tut-pick-art .tpa-tile:last-child { right: 2px; top: 2px; transform: rotate(5deg); }
.tut-pick-art .tpa-tile .special-art { width: 88%; height: 88%; }
.tut-pick-art .tpa-hammer { position: absolute; left: 4px; top: 0; height: 44px; width: auto; transform: rotate(-14deg); filter: drop-shadow(0 2px 1px #5b3a6e44); }
.tut-pick-art .tpa-candy { position: absolute; right: 2px; bottom: 0; width: 30px; height: 30px; filter: drop-shadow(0 2px 1px #5b3a6e44); }
.tut-pick-art .tpa-box { width: 44px; height: 44px; filter: drop-shadow(0 2px 1px #5b3a6e44); }
@media (prefers-reduced-motion: reduce) { #board .tile.hm-demo-glow, #hammerbar .gauge.tut-glow, #hammerBtn.tut-glow { animation: none; filter: brightness(1.25) drop-shadow(0 0 6px #ffd96a); } }
/* r33（2026-11-01）：「選ぶ → 叩く → 同じ種類が全部消える」（app.mjs の hammerTutShow）。
   選ぶ間は代表のブロックを1個ずつ光らせるだけ（盤面全体は光らせない）。選んだ種類はゆっくり明るく光り続け、ほかの種類は少し暗くする */
#board .tile.hm-pick { z-index: 1; transform: scale(1.14); filter: brightness(1.3) drop-shadow(0 0 8px #fff7c2) drop-shadow(0 0 3px #fff); transition: transform .16s ease-out, filter .16s ease-out; }
#board .tile.hm-demo-glow { z-index: 1; animation: hm-demo-glow2 1.3s ease-in-out infinite; }
@keyframes hm-demo-glow2 { 0%, 100% { filter: brightness(1.22) drop-shadow(0 0 5px #fff6c8) drop-shadow(0 0 9px #ffd96a); } 50% { filter: brightness(1.36) drop-shadow(0 0 7px #fff6c8) drop-shadow(0 0 13px #ffd96a); } }
#board.hm-demo-sel .tile:not(.hm-demo-glow):not(.pop) { filter: brightness(.58) saturate(.55); transition: filter .35s ease-out; }
/* 選んだ印：金色の輪が2回ポンッと広がる */
.hm-pick-ring { position: fixed; z-index: 70; pointer-events: none; box-sizing: border-box; border: 4px solid #ffe066; border-radius: 26%;
  box-shadow: 0 0 10px 2px #ffd25acc, inset 0 0 6px #fff6c8; transform: translate(-50%, -50%) scale(.9); opacity: 0; animation: hm-pick-ring .62s ease-out both; }
@keyframes hm-pick-ring { 0% { transform: translate(-50%, -50%) scale(.9); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.75); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #board .tile.hm-pick { transform: none; transition: none; }
  #board .tile.hm-demo-glow { animation: none; filter: brightness(1.28) drop-shadow(0 0 6px #ffd96a); }
  .hm-pick-ring { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}