/* スートパズルの色：ゲーム画面と同じ、温かい白（#FBF8F1）に生成りの格子と朱・紺の輪。
   盤は木目、コマは赤（♥♦）と黒（♠♣）。文字は紺に近い黒（#13263f）、強調は箱の朱（#d8402a）。 */
.st[data-story="suitPuzzle"] {
  --st-bg: url(/assets/story/suit/grid.svg) 0 0 / 96px auto repeat, #fbf8f1;
  --st-fg: #13263f;
  --st-shade: 90, 70, 40;
  --st-dots: 0;
  --ink: #13263f;
  --sun: #d8402a;
}
.st[data-story="suitPuzzle"] .st-hero-top img { width: min(60%, 280px); filter: drop-shadow(0 12px 18px rgba(90, 70, 40, .3)); rotate: -4deg; }

.st[data-story="suitPuzzle"] .st-catch { color: #13263f; text-shadow: none; -webkit-text-stroke: 0; }
.st[data-story="suitPuzzle"] .st-sub { color: #13263f; text-shadow: none; }
.st[data-story="suitPuzzle"] .st-hero-cards { aspect-ratio: 100 / 30; width: min(70%, 320px); }
.st[data-story="suitPuzzle"] .st-hero-cards img { width: 20%; box-shadow: none; border-radius: 0; filter: drop-shadow(0 6px 6px rgba(90, 70, 40, .35)); }
.st[data-story="suitPuzzle"] .st-hero-cards img:nth-child(1) { left: 2%; top: 14%; rotate: -8deg; }
.st[data-story="suitPuzzle"] .st-hero-cards img:nth-child(2) { left: 27%; top: 0; rotate: 4deg; }
.st[data-story="suitPuzzle"] .st-hero-cards img:nth-child(3) { left: 52%; top: 14%; rotate: -4deg; }
.st[data-story="suitPuzzle"] .st-hero-cards img:nth-child(4) { left: 77%; top: 0; rotate: 8deg; }
.st[data-story="suitPuzzle"] .st-next { color: #13263f; }
.st[data-story="suitPuzzle"] .st-next span { background: #d8402a; color: #fff; }
.st[data-story="suitPuzzle"] .st-head, .st[data-story="suitPuzzle"] .st-say, .st[data-story="suitPuzzle"] .st-title { text-shadow: none; }
.st[data-story="suitPuzzle"] .st-num { background: #d8402a; color: #fff; box-shadow: none; }
.st[data-story="suitPuzzle"] .st-big { white-space: nowrap; font-size: clamp(32px, 10vw, 46px); color: #d8402a; -webkit-text-stroke: 9px #fff; text-shadow: 0 6px 0 rgba(19, 38, 63, .3); }
.st[data-story="suitPuzzle"] .st-note-text { background: rgba(255, 255, 255, .85); color: #13263f; box-shadow: inset 0 0 0 1.5px rgba(19, 38, 63, .1); }
.st[data-story="suitPuzzle"] .st-know-list li, .st[data-story="suitPuzzle"] .st-author-card { background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1.5px rgba(19, 38, 63, .1); }
.st[data-story="suitPuzzle"] .st-ico { color: #13263f; }
.st[data-story="suitPuzzle"] .st-prog i { background: rgba(19, 38, 63, .2); }
.st[data-story="suitPuzzle"] .st-prog i.is-past { background: rgba(19, 38, 63, .55); }
.st[data-story="suitPuzzle"] .st-prog i.is-now, .st[data-story="suitPuzzle"] .st-prog.is-done i { background: #d8402a; }
.st[data-story="suitPuzzle"] .st-prog em { color: #d8402a; }
/* ボタン：白い丸と、朱の「次の場面へ」 */
.st[data-story="suitPuzzle"] .st-bub { background: #fff; color: #13263f; text-shadow: none; box-shadow: 0 4px 0 #13263f; }
.st[data-story="suitPuzzle"] .st-bub-go { background: #d8402a; color: #fff; }
.st[data-story="suitPuzzle"] .st-bub::before, .st[data-story="suitPuzzle"] .st-bub::after { content: none; }
.st[data-story="suitPuzzle"] .st-meta li:not(:first-child) { color: #13263f; background: #fff; box-shadow: 0 4px 10px rgba(90, 70, 40, .18); }
.st[data-story="suitPuzzle"] .st-meta-ico { background: rgba(19, 38, 63, .08); }

/* ---- 卓（木の盤） ---- */
.st[data-story="suitPuzzle"] .st-table { container-type: inline-size; }
.st[data-story="suitPuzzle"] .sps-board { filter: drop-shadow(0 2.4cqw 2.6cqw rgba(90, 60, 30, .35)); }
.st[data-story="suitPuzzle"] .sps-pc { filter: drop-shadow(0 .7cqw .6cqw rgba(60, 35, 15, .45)); }
.st[data-story="suitPuzzle"] .sps-pc.is-lift { filter: drop-shadow(0 0 1.4cqw #fff) drop-shadow(0 3cqw 1.6cqw rgba(60, 35, 15, .35)); }
.st[data-story="suitPuzzle"] .sps-pc.is-glow { animation: spsGlow .9s ease-in-out infinite; }
@keyframes spsGlow { 0%, 100% { scale: 1; filter: drop-shadow(0 .7cqw .6cqw rgba(60, 35, 15, .45)); } 50% { scale: 1.14; filter: drop-shadow(0 0 1.4cqw #fff) drop-shadow(0 0 2cqw #ffd36b); } }
/* 飛ぶ：左右の移動は engine の left/top の動きに任せて、高さだけ弧にする（1.6マスぶん上げる） */
.st[data-story="suitPuzzle"] .sps-pc.sps-hop { animation: spsHop var(--hop, .6s) ease-in-out both; }
@keyframes spsHop { 0% { translate: 0 0; scale: 1.08; } 50% { translate: 0 -150%; scale: 1.3; } 100% { translate: 0 0; scale: 1.08; } }
.st[data-story="suitPuzzle"] .sps-pc.sps-land { animation: spsLand .45s ease-out; }
@keyframes spsLand { 0% { scale: 1.2 .8; } 60% { scale: .95 1.06; } 100% { scale: 1; } }
/* 飛びこえられたコマが、ぽんと沈む */
.st[data-story="suitPuzzle"] .sps-pc.sps-step { animation: spsStep .35s ease-out; }
@keyframes spsStep { 50% { scale: .82; translate: 0 6%; } }
.st[data-story="suitPuzzle"] .sps-pc.sps-wobble { animation: spsWobble .5s ease-in-out infinite; }
@keyframes spsWobble { 0%, 100% { rotate: -7deg; } 50% { rotate: 7deg; } }
/* マスの印 */
.st[data-story="suitPuzzle"] .sps-mark { border-radius: .8cqw; }
.st[data-story="suitPuzzle"] .sps-mark.is-go { background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 .5cqw #fff; animation: spsBlink .7s ease-in-out infinite; }
.st[data-story="suitPuzzle"] .sps-mark.is-q { background: rgba(216, 64, 42, .25); animation: spsBlink .7s ease-in-out infinite; }
.st[data-story="suitPuzzle"] .sps-mark.is-mine { background: rgba(216, 64, 42, .35); }
.st[data-story="suitPuzzle"] .sps-mark.is-win { background: #ffd36b; box-shadow: 0 0 2.4cqw #ffd36b; }
.st[data-story="suitPuzzle"] .sps-mark.is-lose { background: #8fa3bd; box-shadow: 0 0 2.4cqw #8fa3bd; }
@keyframes spsBlink { 50% { background-color: rgba(255, 255, 255, .15); } }
.st[data-story="suitPuzzle"] .sps-goal { border-radius: 1cqw; box-shadow: inset 0 0 0 .6cqw rgba(255, 255, 255, 0); transition: box-shadow .5s; }
.st[data-story="suitPuzzle"] .sps-goal.is-on { box-shadow: inset 0 0 0 .7cqw rgba(255, 255, 255, .85); }
.st[data-story="suitPuzzle"] .sps-goal.is-done { box-shadow: inset 0 0 0 .9cqw #ffd36b, 0 0 4cqw #ffd36b; }
/* 名前の札（ゲームと同じ：あなたは赤い札、あいては黒い札） */
.st[data-story="suitPuzzle"] .st-label.sps-name { padding: 1.2cqw 0; border-radius: 99px; color: #fff; text-shadow: none; -webkit-text-stroke: 0; font-size: 3.6cqw; font-weight: 800; transition: scale .3s; }
.st[data-story="suitPuzzle"] .st-label.sps-name.is-me { background: #d8402a; box-shadow: 0 1cqw 1.6cqw rgba(216, 64, 42, .35); }
.st[data-story="suitPuzzle"] .st-label.sps-name.is-rv { background: #1d2430; box-shadow: 0 1cqw 1.6cqw rgba(19, 38, 63, .3); }
.st[data-story="suitPuzzle"] .st-label.sps-name.is-glow { animation: spsBeat .8s ease-in-out infinite; }
@keyframes spsBeat { 50% { scale: 1.12; } }
.st[data-story="suitPuzzle"] .st-label.sps-count { padding: 1.2cqw 0; border-radius: 99px; background: #fff; color: #13263f; text-shadow: none; -webkit-text-stroke: 0; font-size: 3.6cqw; font-weight: 800; box-shadow: 0 1cqw 1.6cqw rgba(90, 70, 40, .2); }
.st[data-story="suitPuzzle"] .sps-count b { color: #d8402a; font-size: 4.6cqw; }
@media (min-width: 900px) { .st[data-story="suitPuzzle"] .st-big { font-size: 52px; } }
.st[data-story="suitPuzzle"] .st-hero .st-name { color: #13263f; -webkit-text-stroke: 0; text-shadow: none; }
/* 大きな字は、そろった列にかぶせない（足場の場面は下の空いた段、ひとりパズルはいちばん下の空き段へ） */
.st[data-story="suitPuzzle"] [data-st-scene="trap"] .st-big { top: 62%; }
.st[data-story="suitPuzzle"] [data-st-scene="solo"] .st-big { top: 76%; }

/* ヘッダー：明るい地なので黒い文字・元の色のロゴ（engine.css の --hd-*） */
body:has(.st[data-story="suitPuzzle"]) { --hd-fg: #1e1b18; --hd-bg: rgba(255, 255, 255, .3); --hd-line: rgba(255, 255, 255, .55); --hd-hover: rgba(255, 255, 255, .45); --hd-logo: none; }
