/* s11-20 確認版 r1（2026-10-18）・r2（同日：コーティングとゲージの見た目を最終イメージ案に）：キャンディコーティング・ハンマー・肉球ゲージ・プレイ記録の見た目。ステージ1〜10 の見た目には影響しない
   （.coat はステージ14から、#hammerbar はステージ11から app.mjs が付ける） */

/* ---------- キャンディコーティング（r2：最終イメージ案 candy-coating-final-image-D4A4F464 に合わせた）----------
   ブロック全体が同じ色のつやつやしたゼリー状のキャンディになり、中の絵は同じ色の浮き彫り（シルエット）でうっすら見える。
   面は CSS のグラデーション、絵は今のブロックの絵をマスクに使って色を付けたもの（新しい画像は使っていない） */
#board .tile.coat.c0 { --j1: #ffc2e2; --j2: #ff63b2; --j3: #e8378f; --je: #c42a77; --jm: #ff9fcf; }
#board .tile.coat.c1 { --j1: #fff3a6; --j2: #ffd43c; --j3: #f2ad12; --je: #c88a0c; --jm: #ffeb8c; }
#board .tile.coat.c2 { --j1: #ffc79a; --j2: #ff8c3c; --j3: #f2611e; --je: #c54a14; --jm: #ffb27a; }
#board .tile.coat.c3 { --j1: #e6c2ff; --j2: #b36ef5; --j3: #8b40e0; --je: #6c2dba; --jm: #d4a6ff; }
#board .tile.coat {
  background:
    radial-gradient(ellipse 72% 42% at 34% 16%, #ffffffd0 0%, #ffffff40 45%, #fff0 70%),
    radial-gradient(ellipse 80% 40% at 50% 112%, #ffffff70 0%, #fff0 60%),
    linear-gradient(165deg, var(--j1) 0%, var(--j2) 48%, var(--j3) 100%);
  border: 1px solid #ffffffc0;
  box-shadow: inset 0 0 0 2px #ffffff4d, inset 0 -5px 7px color-mix(in srgb, var(--je) 45%, transparent), 0 3px 0 var(--je), 0 5px 5px #0b0920a6;
}
/* 中の絵：同じ色の浮き彫り。今のブロックの絵の明るさだけを使い、色はゼリーの色にする（mix-blend-mode: luminosity） */
#board .tile.coat > .dogface { mix-blend-mode: luminosity; opacity: .2; filter: blur(.4px) brightness(1.1); } /* r8：中の絵はうっすら分かる程度に（r7 は .5）。キャンディの色・つや・厚みは同じ */
/* つやの光（左上の大きな光の筋＋右上の小さなキラッ） */
#board .tile.coat::after {
  content: ''; position: absolute; inset: 5%; border-radius: 28%; pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, #fff 0 2.5%, #fff0 6%),
    linear-gradient(135deg, #ffffff8c 0 14%, #fff0 26%);
}
/* 割れる：ゼリーがぷるんと光って弾け、白いかけらが飛ぶ（中のブロックはそのまま） */
#board .tile.coat.coat-crack { animation: jelly-crack .34s ease-out; }
@keyframes jelly-crack { 35% { transform: scale(1.12); filter: brightness(1.35); } 100% { transform: scale(1); filter: none; } }
#board .tile.coat.coat-crack::after { animation: coat-crack .34s ease-out forwards; }
@keyframes coat-crack { 40% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.3); } }
.coat-shard { position: absolute; width: 9px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px #ffffff80; pointer-events: none;
  transform: translate(-50%, -50%); animation: coat-shard .42s ease-out forwards; }
@keyframes coat-shard { to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(160deg); opacity: 0; } }
/* ステージ14の最初：コーティングが少し光って目に入るようにする */
#board.coat-hint .tile.coat { animation: coat-hint 1.1s ease-in-out 3; }
@keyframes coat-hint { 50% { filter: brightness(1.18); transform: scale(1.05); } }

/* ---------- ハンマーゲージの段（r2：hammer-gauge-image-510E958F に合わせた。ステージ11から、特殊ピースの案内の段と入れ替える。スマホの高さは同じ 44px）----------
   左：ハンマー（ラベンダーの四角）＋個数（茶色の丸）／中：「ハンマーゲージ」＋肉球5つ（1つ＝満タンの5分の1。下から桃色に満ちる）／右：「17/30」 */
.hammerbar {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 6px; border-radius: 16px;
  background: linear-gradient(#fff6e2, #f6e2bd); border: 2px solid #fffaf0;
  box-shadow: inset 0 -2px 3px #c9a46a40, 0 2px 0 #c9a46a, 0 3px 6px #5a3a1a40;
}
.hammerbar[hidden] { display: none !important; }
.hammerbtn {
  position: relative; flex: 0 0 auto; width: 40px; height: 36px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, #ffffffd9, #fff0 70%), linear-gradient(#e9dcfb, #bfa3e8); box-shadow: inset 0 1px 1px #fff, inset 0 -2px 3px #5a3d8a59, 0 1px 2px #5a3a1a40; /* r8：薄紫を濃くして、淡いパープルのハンマーが引き立つように（中央は明るく） */
  display: grid; place-items: center; touch-action: manipulation;
}
.hammerbtn img { width: 34px; height: auto; filter: drop-shadow(0 1px 1px #4a2a6080) drop-shadow(0 0 1px #6b4a9a99); pointer-events: none; } /* r8：少し大きく、ふちをくっきり（絵の色は同じ） */
.hammerbtn:disabled { cursor: default; }
.hammerbtn:disabled img { filter: grayscale(.35) drop-shadow(0 1px 1px #4a2a6055); opacity: .85; }
.hammerbtn.armed { background: linear-gradient(#fff3a8, #ffd84d); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f2b43c, 0 2px 0 #c58a1f; }
.hammerbtn.hint:not(:disabled) { animation: hammer-hint 1.2s ease-in-out infinite; }
@keyframes hammer-hint { 50% { transform: translateY(-2px) rotate(-8deg) scale(1.06); } }
.hcount {
  position: absolute; right: -7px; top: -7px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px;
  background: #a98bcb; color: #fff; font: 700 11px/17px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 1.5px #fff8ec; min-width: 17px; height: 17px; /* r8：黒っぽい茶色をやめ、やわらかい薄紫・少し小さく（補助の情報） */
}
.gauge { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; padding-left: 5px; }
.gauge .glabel { font: 900 10.5px/1.1 'Hiragino Maru Gothic ProN', system-ui, sans-serif; color: #4a2c18; letter-spacing: .5px; white-space: nowrap; }
.paws { display: flex; justify-content: space-between; gap: 2px; padding: 1px 6px; border-radius: 10px; background: #f3dfb8; box-shadow: inset 0 1px 2px #b48a5040; }
.paw {
  --f: 0%; width: 24px; height: 21px; flex: 0 0 auto;
  background:
    radial-gradient(ellipse 38% 26% at 50% 66%, #ffffffa0, #fff0 70%),
    linear-gradient(to top, #fff0 var(--f), #d4d4dc var(--f), #f2f2f6 100%),
    linear-gradient(to top, #e83590, #ff7cc0);
  -webkit-mask: var(--paw-shape) center / contain no-repeat; mask: var(--paw-shape) center / contain no-repeat;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px #8a5a3a55);
  --paw-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 88'%3E%3Cellipse cx='16' cy='36' rx='12' ry='14'/%3E%3Cellipse cx='36' cy='15' rx='12.5' ry='14.5'/%3E%3Cellipse cx='64' cy='15' rx='12.5' ry='14.5'/%3E%3Cellipse cx='84' cy='36' rx='12' ry='14'/%3E%3Cpath d='M50 38c-18 0-33 16-33 31 0 11 9 17 19 17 6 0 9-3 14-3s8 3 14 3c10 0 19-6 19-17 0-15-15-31-33-31z'/%3E%3C/svg%3E");
  transition: --f .4s;
}
.paws.full .paw { animation: paw-full .45s ease-in-out 3; }
@keyframes paw-full { 50% { transform: scale(1.18); filter: drop-shadow(0 0 4px #fff5a0) drop-shadow(0 0 2px #fff); } }
.gpill { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: #fff8ec; box-shadow: inset 0 1px 2px #b48a5040;
  font: 900 13px/1 system-ui, sans-serif; color: #4a2c18; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge.bump .paws { animation: g-bump .4s ease-out; }
@keyframes g-bump { 40% { transform: scale(1.04); } }
.gplus { position: absolute; right: 50px; top: -8px; font: 900 14px/1 system-ui, sans-serif; color: #e83590; text-shadow: 0 1px 0 #fff, 0 0 3px #fff;
  pointer-events: none; animation: gplus .9s ease-out forwards; }
@keyframes gplus { from { transform: translateY(6px); opacity: 0; } 25% { opacity: 1; } to { transform: translateY(-16px); opacity: 0; } }
@media (min-width: 721px) { .hammerbar { padding: 8px 12px; } .paw { width: 34px; height: 30px; } .gauge .glabel { font-size: 13px; } .hammerbtn { width: 48px; height: 44px; } .hammerbtn img { width: 38px; } }
/* ハンマーを選んでいる間：盤のまわりに金色の点線（消したい種類のブロックをタップ） */
#board.hammer-mode { outline: 3px dashed #f2b43c; outline-offset: 3px; border-radius: 12px; }
#board.hammer-mode .tile:not(.special) { cursor: pointer; }

/* ハンマーが飛んできて「ポコン！」と叩く（#fx の中） */
.hammer-fly { position: absolute; pointer-events: none; transform-origin: 84.4% 87%; filter: drop-shadow(0 4px 4px #3a1f4a66); z-index: 5; }
.hammer-ring { position: absolute; border-radius: 50%; border: 3px solid #fff3b0; transform: translate(-50%, -50%) scale(.3); pointer-events: none; animation: hammer-ring .4s ease-out forwards; }
@keyframes hammer-ring { to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }

/* ハンマー GET!（ゲージ満タン）：画面の中央に小さく出て消える。操作は止めない */
.hammer-get { position: fixed; left: 50%; top: 42%; z-index: 9000; pointer-events: none; display: grid; justify-items: center; gap: 2px;
  transform: translate(-50%, -50%); animation: hammer-get 1.5s ease-out forwards; }
.hammer-get img { width: 92px; height: auto; filter: drop-shadow(0 5px 6px #3a1f4a66); }
.hammer-get b { font: 900 24px/1 'Arial Rounded MT Bold', 'Hiragino Maru Gothic ProN', system-ui, sans-serif; color: #fff; -webkit-text-fill-color: #fff; letter-spacing: .5px;
  padding: 7px 14px 8px; border-radius: 999px; background: linear-gradient(#ffd96a, #f2a93b); box-shadow: 0 0 0 3px #fff, 0 3px 0 3px #8a4bc4, 0 6px 12px #3a1f4a55; text-shadow: 0 2px 0 #b9661f; }
@keyframes hammer-get {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  28% { transform: translate(-50%, -50%) scale(.95); }
  38% { transform: translate(-50%, -50%) scale(1.02); }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -65%) scale(.9); opacity: 0; }
}

/* プレイの記録（クリア・失敗の画面の上に小さく出る。確認版だけの表示） */
.run-note { position: absolute; left: 50%; top: 6px; z-index: 50; transform: translateX(-50%); max-width: calc(100% - 16px);
  font: 700 11px/1.35 system-ui, sans-serif; color: #fff; white-space: nowrap; background: #3a2c5ce6; padding: 5px 10px; border-radius: 999px; text-align: center;
  pointer-events: none; animation: run-note 7s ease-out forwards; }
@keyframes run-note { 0% { opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* ステージ選択：11〜20 の見出し */
.levelhead { margin: 10px 0 4px; font: 800 13px/1.3 system-ui, sans-serif; color: #77533b; }

/* ---------- r7（2026-10-18）：ハンマーを選んだ時の代表ブロックの光と、使った時の一瞬の強い光（見た目だけ。押せる場所・判定は変えない） ---------- */
/* 代表ブロック（種類ごとに1個、最大4個）：0.13秒おきに順番に「ふわっ」と光ってから、選んでいる間はやわらかく光り続ける */
#board .tile.hm-rep {
  z-index: 1;
  animation: hm-rep-in .6s ease-out var(--hm-d, 0ms) both, hm-rep-idle 1.6s ease-in-out calc(var(--hm-d, 0ms) + .6s) infinite;
}
@keyframes hm-rep-in {
  0% { transform: scale(1); filter: none; }
  45% { transform: scale(1.14); filter: brightness(1.4) drop-shadow(0 0 8px #fff7c2) drop-shadow(0 0 3px #fff); }
  100% { transform: scale(1.04); filter: brightness(1.18) drop-shadow(0 0 7px #ffeb8a) drop-shadow(0 0 2px #fff); }
}
@keyframes hm-rep-idle {
  0%, 100% { transform: scale(1.04); filter: brightness(1.18) drop-shadow(0 0 7px #ffeb8a) drop-shadow(0 0 2px #fff); }
  50% { transform: scale(1.07); filter: brightness(1.28) drop-shadow(0 0 10px #ffeb8a) drop-shadow(0 0 3px #fff); }
}
/* 叩く直前：選んだ種類のブロック（キャンディも）が一瞬強く光る */
#board .tile.hm-flash { z-index: 1; animation: hm-flash .28s ease-out both; }
@keyframes hm-flash {
  0% { transform: scale(1); filter: none; }
  35% { transform: scale(1.1); filter: brightness(1.7) drop-shadow(0 0 9px #fff) drop-shadow(0 0 4px #fff4b0); }
  100% { transform: scale(1.02); filter: brightness(1.15) drop-shadow(0 0 4px #fff4b0); }
}
@media (prefers-reduced-motion: reduce) { #board .tile.hm-rep { animation: none; filter: brightness(1.15) drop-shadow(0 0 5px #fff2a8); } }

/* ---------- r9（2026-10-19）：読みにくかった文字だけをはっきり（大きさ・位置・内容は同じ） ---------- */
/* ハンマーゲージ：ゲームの丸い書体（M PLUS Rounded 1c）の太字に、色を濃く、下に白い光 */
.gauge .glabel { font: 800 11px/1.1 var(--ui-font, 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', system-ui, sans-serif); color: #3a2010; letter-spacing: .3px; text-shadow: 0 1px 0 #fffaf0; }
/* SCORE と点数、盤の下の案内（ステージ1の「左上の９個をタップしてみよう！」など）：背景の写真に埋もれないよう、濃い紫の細いふち取り＋影。太さは 800 に */
.scoreline, .scoreline b, #feedback {
  text-shadow: 1px 0 0 #2a1736, -1px 0 0 #2a1736, 0 1px 0 #2a1736, 0 -1px 0 #2a1736, 1px 1px 0 #2a1736, -1px 1px 0 #2a1736, 1px -1px 0 #2a1736, -1px -1px 0 #2a1736, 0 2px 4px #0b0b28b3;
}
.scoreline > span:first-child { font-weight: 800; letter-spacing: 1.5px; color: #fff4ff; }
.scoreline b, #feedback { font-weight: 800; }
#feedback { color: #fff8e6; }

/* ---------- r10（2026-10-19）：キャンディが割れる演出（#fx の上に重ねる殻・ひび・かけら・キラキラ。押せる場所には関わらない） ---------- */
.candy-break { --j1: #ffc2e2; --j2: #ff63b2; --j3: #e8378f; }
.candy-break.cb-c1 { --j1: #fff3a6; --j2: #ffd43c; --j3: #f2ad12; }
.candy-break.cb-c2 { --j1: #ffc79a; --j2: #ff8c3c; --j3: #f2611e; }
.candy-break.cb-c3 { --j1: #e6c2ff; --j2: #b36ef5; --j3: #8b40e0; }
.candy-break {
  position: absolute; z-index: 4; pointer-events: none; border-radius: 22%;
  background: radial-gradient(ellipse 72% 42% at 34% 16%, #ffffffd0 0%, #ffffff40 45%, #fff0 70%), linear-gradient(165deg, var(--j1) 0%, var(--j2) 48%, var(--j3) 100%);
  box-shadow: inset 0 0 0 2px #ffffff4d;
  animation: cb-shell .37s ease-out both;
}
.candy-break svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.candy-break path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 64; stroke-dashoffset: 64; filter: drop-shadow(0 0 2px #fff); animation: cb-crack .09s ease-out both; animation-delay: inherit; }
@keyframes cb-crack { to { stroke-dashoffset: 0; } }
/* 0〜24%（0.09秒）：ひびが走って小さく震える → 24% で弾ける（ふくらみながら一気に消える） */
@keyframes cb-shell {
  0% { transform: scale(1); opacity: 1; }
  10% { transform: scale(1.04) rotate(-3deg); }
  18% { transform: scale(.98) rotate(3deg); }
  24% { transform: scale(1.02); opacity: 1; filter: brightness(1.25); }
  60% { opacity: .35; }
  100% { transform: scale(1.3); opacity: 0; filter: brightness(1.4); }
}
/* かけら：同じ色の半透明の小さな破片（白い光つき）。回りながら飛んで、すぐ消える */
.candy-shard {
  position: absolute; z-index: 5; pointer-events: none; width: var(--s, 7px); height: var(--s, 7px);
  background: linear-gradient(140deg, #ffffffe6 0%, var(--jc, #fff) 45%, var(--jc, #fff) 100%); opacity: .88;
  transform: translate(-50%, -50%); animation: cb-shard .44s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes cb-shard {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: .95; }
  70% { opacity: .8; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(.55); opacity: 0; }
}
/* キラキラ：小さな白い星（3個） */
.candy-spark { position: absolute; z-index: 5; pointer-events: none; width: 8px; height: 8px; background: #fff;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%); filter: drop-shadow(0 0 2px #fff7c2);
  transform: translate(-50%, -50%); animation: cb-spark .42s ease-out forwards; }
@keyframes cb-spark { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1) rotate(var(--r)); opacity: 0; } }

/* ---------- r11（2026-10-19）：割れ方を作り直し（ひび 0.08秒 → 弾けて殻はすぐ消える＋一瞬の光 → 丸みのある大きなかけら 5〜7個が外へ） ---------- */
.candy-chunk, .candy-flash { --j1: #ffc2e2; --j2: #ff63b2; --j3: #e8378f; }
.candy-chunk.cb-c1, .candy-flash.cb-c1 { --j1: #fff3a6; --j2: #ffd43c; --j3: #f2ad12; }
.candy-chunk.cb-c2, .candy-flash.cb-c2 { --j1: #ffc79a; --j2: #ff8c3c; --j3: #f2611e; }
.candy-chunk.cb-c3, .candy-flash.cb-c3 { --j1: #e6c2ff; --j2: #b36ef5; --j3: #8b40e0; }
/* 殻：ひびが走って小さく震え（〜40%＝0.08秒）、弾けた瞬間に明るくなってすぐ消える（〜0.2秒） */
.candy-break { animation: cb-shell2 .2s ease-out both; }
.candy-break path { stroke-width: 5; animation: cb-crack .08s ease-out both; animation-delay: inherit; }
@keyframes cb-shell2 {
  0% { transform: scale(1); opacity: 1; filter: none; }
  15% { transform: scale(1.04) rotate(-3deg); }
  30% { transform: scale(.98) rotate(3deg); }
  40% { transform: scale(1.06); opacity: 1; filter: brightness(1.5); }
  100% { transform: scale(1.14); opacity: 0; filter: brightness(1.6); }
}
/* 弾けた瞬間の光（キャンディの色をおびた白い光、0.2秒） */
.candy-flash { position: absolute; z-index: 4; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, #ffffffee 0%, color-mix(in srgb, var(--j1) 80%, #fff) 30%, color-mix(in srgb, var(--j2) 35%, transparent) 55%, transparent 72%);
  transform: translate(-50%, -50%) scale(.35); animation: cb-flash .2s ease-out forwards; }
@keyframes cb-flash { 40% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
/* かけら：丸みのあるぷっくりした半透明のキャンディの破片（角は丸く、白いふちとつや）。殻の位置から外へ勢いよく飛び、回りながら小さくなって消える */
.candy-chunk {
  position: absolute; z-index: 5; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 32% 28%, #ffffffe6 0%, #ffffff66 40%, transparent 70%),
    linear-gradient(150deg, color-mix(in srgb, var(--j1) 92%, transparent) 0%, color-mix(in srgb, var(--j2) 85%, transparent) 55%, color-mix(in srgb, var(--j3) 88%, transparent) 100%);
  border: 1.5px solid #ffffffb3;
  box-shadow: inset 0 -3px 4px color-mix(in srgb, var(--j3) 55%, transparent), inset 0 1px 2px #fff, 0 2px 4px #2a173640;
  transform: translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(var(--r0));
  animation: cb-chunk .44s cubic-bezier(.15, .75, .35, 1) forwards;
}
@keyframes cb-chunk {
  0% { transform: translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(var(--r0)) scale(.9); opacity: 1; }
  12% { transform: translate(-50%, -50%) translate(calc(var(--sx) + var(--x) * .3), calc(var(--sy) + var(--y) * .3)) rotate(calc(var(--r0) + var(--r) * .2)) scale(1.05); opacity: 1; }
  70% { opacity: .9; }
  100% { transform: translate(-50%, -50%) translate(calc(var(--sx) + var(--x)), calc(var(--sy) + var(--y) + 6px)) rotate(calc(var(--r0) + var(--r))) scale(.7); opacity: 0; }
}
/* r11：かけらは SVG の平たい破片（下に厚み・本体・白いつや）。背景・ふちの指定は使わない */
svg.candy-chunk { background: none; border: 0; box-shadow: none; overflow: visible; filter: drop-shadow(0 2px 2px #2a173659); }
svg.candy-chunk .sd { fill: var(--j3); fill-opacity: .75; }
svg.candy-chunk .b { fill: var(--j2); fill-opacity: .9; stroke: #fff; stroke-opacity: .6; stroke-width: 2.5; stroke-linejoin: round; }
svg.candy-chunk .h { fill: #fff; fill-opacity: .5; }

/* r14（2026-10-20）：ハンマー GET の新しい演出（音「トゥトゥトゥトゥッ、トゥトゥ〜♪」に合わせて app.mjs の hammerGet2 が動かす）。絵・色は今のまま */
.hammer-get2 { animation: none; }
.hammer-get2 img { position: relative; z-index: 1; will-change: transform, filter; transform: scale(0); }
.hammer-get2 b { position: relative; z-index: 1; opacity: 0; }
.hg2-ring { position: absolute; left: 50%; top: 52px; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fffbe0 0%, #ffe68acc 28%, #ffd84d55 52%, #ffd84d00 70%); }
.hg2-star { position: absolute; left: 50%; top: 52px; width: 20px; height: 20px; margin: -10px 0 0 -10px; z-index: 2; pointer-events: none; opacity: 0;
  display: grid; place-items: center; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 0 2px #f2a93b, 0 0 5px #f2a93b, 0 0 10px #ff9fd0; }
/* ---------- r15（2026-10-20）：キャンディが砕ける演出の作り直し（app.mjs の candyBurst）。殻そのものが4つの大きな破片に割れて飛ぶ ---------- */
.candy-piece, .candy-bit, .candy-ring { --j1: #ffc2e2; --j2: #ff63b2; --j3: #e8378f; }
.candy-piece.cb-c1, .candy-bit.cb-c1, .candy-ring.cb-c1 { --j1: #fff3a6; --j2: #ffd43c; --j3: #f2ad12; }
.candy-piece.cb-c2, .candy-bit.cb-c2, .candy-ring.cb-c2 { --j1: #ffc79a; --j2: #ff8c3c; --j3: #f2611e; }
.candy-piece.cb-c3, .candy-bit.cb-c3, .candy-ring.cb-c3 { --j1: #e6c2ff; --j2: #b36ef5; --j3: #8b40e0; }
/* ヒビ：殻の震えは app.mjs（Web Animations）。白いひびは少し太く、キャンディの濃い色のふちで見やすく */
.candy-break.cb-r15 { animation: none; z-index: 6; }
.candy-break.cb-r15 path { stroke-width: 6; filter: drop-shadow(0 0 1.5px var(--j3)) drop-shadow(0 0 1px #fff); }
/* 殻の大きな破片：キャンディの面（色・つや）をそのまま割れ目の形に切り抜く。白いふちと影で「かけら」に見えるように */
.candy-piece { position: absolute; z-index: 6; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 0 1px var(--j3)) drop-shadow(0 0 1.5px #fff) drop-shadow(0 2px 2px #2a173670); }
.candy-piece > b { position: absolute; inset: 0; display: block; border-radius: 22%;
  background: radial-gradient(ellipse 72% 42% at 34% 16%, #ffffffd0 0%, #ffffff40 45%, #fff0 70%), linear-gradient(165deg, var(--j1) 0%, var(--j2) 48%, var(--j3) 100%);
  box-shadow: inset 0 0 0 2px #ffffff70, inset 0 -4px 6px color-mix(in srgb, var(--j3) 55%, transparent); }
/* 小さなかけら：同じ色のつやのある粒 */
.candy-bit { position: absolute; z-index: 6; pointer-events: none; border-radius: 35% 45% 30% 50%;
  background: linear-gradient(150deg, #ffffffd9 0%, var(--j1) 25%, var(--j2) 60%, var(--j3) 100%); box-shadow: 0 0 0 1.5px #ffffffb3, 0 1px 2px #2a173659; }
/* 白い輪（パキッの瞬間、0.3秒） */
.candy-ring { position: absolute; z-index: 5; pointer-events: none; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 6px var(--j2), inset 0 0 6px var(--j1);
  transform: translate(-50%, -50%) scale(.45); animation: cb-ring .3s ease-out forwards; }
@keyframes cb-ring { 0% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; } }
/* 中の通常ブロックが「ポンッ」とはっきり現れる（transform は使わない＝落下などの動きとぶつからない） */
#board .tile.coat-reveal { animation: coat-reveal .28s ease-out; }
@keyframes coat-reveal { 0% { scale: .8; filter: brightness(1.55); } 55% { scale: 1.09; filter: brightness(1.2); } 100% { scale: 1; filter: none; } }

/* r15：ハンマー GET「フリフリフリッ！→ ピタッ！」（hammerGet3）。光の輪は少し小さめ */
.hammer-get3 .hg2-ring { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
/* r21（2026-10-28）：GOAL の並びに出す「残りのキャンディ」。中の絵は 🍬、地はキャンディの殻と同じ桃色のゼリー風 */
.mini.candy-mini { display: grid; place-items: center; border-radius: 8px; background: linear-gradient(160deg, #ffe3f1, #ff9fcc); box-shadow: inset 0 1px 2px #fff, inset 0 -2px 3px #e0609a66, 0 2px 0 #a07a4f66; font-size: .78em; line-height: 1; }
.candy-target.done .mini.candy-mini { filter: grayscale(.4); }
/* ---------- s11-20 r27（2026-10-31）：キャンディ（コーティング）を新しい画像に ----------
   元画像：artwork-source/autumn-2026-11/candy-coat-blocks-3F118B19.png（1774×887）の下の段の4つを切り出した blocks/coat/coat-cN-v1.png（幅256）。
   c0＝ピンクの肉球・c1＝黄色の骨・c2＝オレンジのもみじ・c3＝紫のクッキー。上の段（通常ブロック）は使わない（今のまま）。
   大きさ・位置・当たり判定・ルールは変えない（同じ .tile の背景を差し替えるだけ）。上の r2 のゼリーの面・つや・中の絵は出さない。
   割れる演出（candyBurst の破片・音）は今のまま。 */
#board .tile.coat { background: var(--coat-img) center / 100% 100% no-repeat; border: 0; box-shadow: none; }
#board .tile.coat.c0 { --coat-img: url('blocks/coat/coat-c0-v1.png'); }
#board .tile.coat.c1 { --coat-img: url('blocks/coat/coat-c1-v1.png'); }
#board .tile.coat.c2 { --coat-img: url('blocks/coat/coat-c2-v1.png'); }
#board .tile.coat.c3 { --coat-img: url('blocks/coat/coat-c3-v1.png'); }
#board .tile.coat > .dogface { opacity: 0; }
#board .tile.coat::after { content: none; }

/* ---------- s11-20 r27：ステージ11の初回だけ、宝箱のハンマーが飛んできて下の枠に着地（app.mjs の hammerFlyIn）---------- */
.hammer-fly { position: fixed; z-index: 60; height: auto; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity;
  filter: drop-shadow(0 0 10px #ffe9a0) drop-shadow(0 0 3px #fff6d6) drop-shadow(0 3px 3px #4a2a6066); }
.hland-spark { position: fixed; z-index: 61; width: 12px; height: 12px; pointer-events: none; background: #fff3b0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 3px #ffd84d); }
.hammerbtn.hland { animation: hland .5s ease-out; }
.hammerbtn.hland .hcount { animation: hland-count .55s ease-out; }
@keyframes hland { 30% { transform: scale(1.18) translateY(1px); } 60% { transform: scale(.96); } 100% { transform: none; } }
@keyframes hland-count { 0% { transform: scale(.4); } 45% { transform: scale(1.45); box-shadow: 0 0 0 3px #fff3b0, 0 0 10px 3px #ffd84d; } 100% { transform: none; } }
