/* 肉かるたの色：トップのタイルと箱の赤（#c2362e）に白い字。卓はゲームと同じ木の板（#c29a6b→#a9784c）。
   強調はゲームの「ゲット！」と同じ黄色。 */
.st[data-story="nikuKaruta"] {
  --st-bg: radial-gradient(ellipse at 50% 0%, #d8473c 0%, #c2362e 45%, #a3271f 100%);
  --st-fg: #fff;
  --st-shade: 80, 10, 6;
  --st-dots: 0;
  --ink: #6e1611;
  --sun: #ffd84a;
}
.st[data-story="nikuKaruta"] .st-hero h1 img { width: min(94%, 560px); border-radius: 18px; box-shadow: 0 10px 0 rgba(80, 10, 6, .35), 0 0 0 4px #fff; filter: none; }
.st[data-story="nikuKaruta"] .st-hero-cards { aspect-ratio: 100 / 46; width: min(66%, 300px); }
.st[data-story="nikuKaruta"] .st-hero-cards img { background: #fff; width: 30%; border-radius: 8%; box-shadow: 0 0 0 3px #fff, 0 10px 16px rgba(80, 10, 6, .45); }
.st[data-story="nikuKaruta"] .st-hero-cards img:nth-child(1) { left: 6%; top: 10%; transform: rotate(-9deg); }
.st[data-story="nikuKaruta"] .st-hero-cards img:nth-child(2) { left: 35%; top: 0; transform: rotate(2deg); }
.st[data-story="nikuKaruta"] .st-hero-cards img:nth-child(3) { left: 64%; top: 10%; transform: rotate(9deg); }
.st[data-story="nikuKaruta"] .st-num { background: #fff; color: #c2362e; box-shadow: none; }
.st[data-story="nikuKaruta"] .st-big { color: #fff; -webkit-text-stroke: 9px #6e1611; }
.st[data-story="nikuKaruta"] .st-note-text { background: rgba(110, 22, 17, .55); color: #fff; }
.st[data-story="nikuKaruta"] .st-know-list li, .st[data-story="nikuKaruta"] .st-author-card { background: rgba(110, 22, 17, .4); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
.st[data-story="nikuKaruta"] .st-prog i { background: rgba(255, 255, 255, .3); }
.st[data-story="nikuKaruta"] .st-prog i.is-past { background: rgba(255, 255, 255, .7); }
.st[data-story="nikuKaruta"] .st-prog i.is-now, .st[data-story="nikuKaruta"] .st-prog.is-done i { background: #ffd84a; }
.st[data-story="nikuKaruta"] .st-prog em { color: #ffd84a; }
/* ボタン：白い札と、黄色い「次の場面へ」（ゲームの「つぎへ」の札に寄せる） */
.st[data-story="nikuKaruta"] .st-bub { background: #fff; color: #c2362e; text-shadow: none; box-shadow: 0 4px 0 #6e1611; }
.st[data-story="nikuKaruta"] .st-bub-go { background: #ffd84a; color: #6e1611; }
.st[data-story="nikuKaruta"] .st-bub::before, .st[data-story="nikuKaruta"] .st-bub::after { content: none; }
.st[data-story="nikuKaruta"] .st-next span { background: #fff; color: #c2362e; }

/* ---- 卓 ---- */
.st[data-story="nikuKaruta"] .st-table { container-type: inline-size; }
/* 木の板：明るい木から暗い木へ。板の継ぎ目と木目の細い線 */
.st[data-story="nikuKaruta"] .nks-wood {
  border-radius: 4cqw;
  background:
    repeating-linear-gradient(90deg, transparent 0 24.6%, rgba(110, 70, 38, .55) 24.6% 25%),
    repeating-linear-gradient(92deg, transparent 0 3.1%, rgba(138, 92, 54, .16) 3.1% 3.5%, transparent 3.5% 7.3%),
    linear-gradient(180deg, #c29a6b, #a9784c);
  box-shadow: 0 1.6cqw 0 #6e1611, 0 3cqw 5cqw rgba(60, 8, 4, .45);
}
.st[data-story="nikuKaruta"] .nks-card { background: #fff; border-radius: 1.6cqw; box-shadow: 0 0 0 .7cqw #fff, 0 1.2cqw 1.6cqw rgba(60, 30, 10, .4); transition: left .55s cubic-bezier(.3, 1.1, .5, 1), top .55s cubic-bezier(.3, 1.1, .5, 1), width .55s cubic-bezier(.3, 1.1, .5, 1), transform .4s, opacity .35s; }
.st[data-story="nikuKaruta"] .nks-card.is-glow { animation: nksGlow .8s ease-in-out infinite; }
@keyframes nksGlow { 0%, 100% { scale: 1; box-shadow: 0 0 0 .7cqw #fff, 0 1.2cqw 1.6cqw rgba(60, 30, 10, .4); } 50% { scale: 1.07; box-shadow: 0 0 0 .9cqw #ffd84a, 0 0 4cqw #ffd84a; } }
.st[data-story="nikuKaruta"] .nks-card.is-lift { transform: translateY(-8%) scale(1.08) rotate(var(--rot)); filter: none; }
.st[data-story="nikuKaruta"] .nks-card.is-dim { filter: grayscale(.35) brightness(.6); }
.st[data-story="nikuKaruta"] .nks-card.nks-flip { animation: nksFlip .5s ease-in-out; }
/* めくりは scale だけで動かす（transform を使うと、持ち上げ・傾きが一瞬もどってガクッとなる） */
@keyframes nksFlip { 0%, 100% { scale: 1 1; } 46%, 54% { scale: .02 1.06; } }
/* ぜんぶ肉！：札がいっせいにぷるぷるする */
.st[data-story="nikuKaruta"] .nks-card.nks-wiggle { animation: nksWiggle .3s ease-in-out 5; }
@keyframes nksWiggle { 0%, 100% { transform: rotate(var(--rot)); } 33% { transform: rotate(calc(var(--rot) - 6deg)) scale(1.04); } 66% { transform: rotate(calc(var(--rot) + 6deg)) scale(1.04); } }
/* 読み札の板：白い板、上に赤い帯 */
.st[data-story="nikuKaruta"] .nks-read { border-radius: 2cqw; overflow: hidden; background: #fff; box-shadow: 0 1.2cqw 2cqw rgba(60, 30, 10, .35); }
.st[data-story="nikuKaruta"] .nks-read b { display: block; padding: .8cqw 3cqw; background: #d8322e; color: #fff; font-size: 3.6cqw; line-height: 1.2; font-weight: 900; }
.st[data-story="nikuKaruta"] .nks-read span { position: absolute; left: 22%; right: 3%; top: 38%; color: #d8322e; font-size: 4.4cqw; line-height: 1.3; font-weight: 900; }
/* 名前の札（ゲームの上の帯） */
.st[data-story="nikuKaruta"] .st-label.nks-chipbox { text-shadow: none; -webkit-text-stroke: 0; transition: opacity .3s; }
.st[data-story="nikuKaruta"] .nks-chip { display: flex; align-items: center; border-radius: 2cqw; overflow: hidden; background: #fff; box-shadow: 0 1cqw 1.6cqw rgba(60, 30, 10, .35); font-size: 4cqw; font-weight: 900; color: #2e2422; white-space: nowrap; }
.st[data-story="nikuKaruta"] .nks-chip i { flex: none; display: grid; place-items: center; width: 5.4cqw; height: 5.4cqw; margin: 1.2cqw 1.2cqw 1.2cqw 1.8cqw; border-radius: 50%; background: #fff; color: #2e2422; font-style: normal; font-size: 3cqw; }
.st[data-story="nikuKaruta"] .nks-chip b { flex: 1; align-self: stretch; display: flex; align-items: center; background: #d8322e; color: #fff; margin-left: -8.4cqw; padding-left: 8.4cqw; }
.st[data-story="nikuKaruta"] .nks-chip i { position: relative; z-index: 1; }
.st[data-story="nikuKaruta"] .nks-chip em { padding: 0 2.4cqw; font-style: normal; }
.st[data-story="nikuKaruta"] .nks-chipbox.is-glow { animation: nksChip .8s ease-in-out infinite; }
@keyframes nksChip { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 2.4cqw #ffd84a); } }
.st[data-story="nikuKaruta"] .nks-chipbox.nks-out { opacity: .45; filter: grayscale(.6); }
/* タッチした印 */
.st[data-story="nikuKaruta"] .st-label.nks-tap { aspect-ratio: 1; text-shadow: none; -webkit-text-stroke: 0; }
.st[data-story="nikuKaruta"] .nks-tap i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #d8322e; font-style: normal; font-size: 4.4cqw; font-weight: 900; box-shadow: 0 0 0 1cqw rgba(255, 216, 74, .9), 0 1cqw 2cqw rgba(60, 10, 5, .5); }
.st[data-story="nikuKaruta"] .nks-tap i:empty { background: rgba(255, 255, 255, .35); }
.st[data-story="nikuKaruta"] .nks-tap::after { content: ''; position: absolute; inset: -40%; border-radius: 50%; border: .8cqw solid #ffd84a; animation: nksRing .9s ease-out infinite; }
@keyframes nksRing { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
/* 反応の秒数 */
.st[data-story="nikuKaruta"] .st-label.nks-ms { display: flex; justify-content: center; gap: 2.4cqw; text-shadow: none; -webkit-text-stroke: 0; }
.st[data-story="nikuKaruta"] .nks-ms span { padding: .8cqw 2.4cqw; border-radius: 99px; background: rgba(46, 36, 34, .78); color: #fff; font-size: 3.8cqw; font-weight: 900; white-space: nowrap; }
.st[data-story="nikuKaruta"] .nks-ms span.a { background: #d8322e; box-shadow: 0 0 0 .6cqw #ffd84a; }
/* お手つき：赤い札 */
.st[data-story="nikuKaruta"] .st-label.nks-miss { text-align: center; padding: 1cqw 0; border-radius: 99px; background: #d8322e; color: #fff; text-shadow: none; -webkit-text-stroke: 0; font-size: 5cqw; font-weight: 900; transform: rotate(-6deg); box-shadow: 0 0 0 .8cqw #fff, 0 1.2cqw 2cqw rgba(60, 10, 5, .5); }
/* ゲット！のぎざぎざ */
.st[data-story="nikuKaruta"] .st-label.nks-burst { aspect-ratio: 1; text-shadow: none; -webkit-text-stroke: 0; }
.st[data-story="nikuKaruta"] .nks-burst span {
  position: absolute; inset: 0; display: grid; place-items: center; transform: rotate(-12deg);
  background: #ffd84a; color: #d8322e; font-size: 6.4cqw; font-weight: 900;
  clip-path: polygon(50% 0%, 59% 13%, 75% 6%, 76% 22%, 93% 25%, 85% 40%, 100% 50%, 85% 60%, 93% 75%, 76% 78%, 75% 94%, 59% 87%, 50% 100%, 41% 87%, 25% 94%, 24% 78%, 7% 75%, 15% 60%, 0% 50%, 15% 40%, 7% 25%, 24% 22%, 25% 6%, 41% 13%);
  filter: drop-shadow(0 0 0 #d8322e);
}
.st[data-story="nikuKaruta"] .nks-burst { filter: drop-shadow(.6cqw 0 0 #d8322e) drop-shadow(-.6cqw 0 0 #d8322e) drop-shadow(0 .6cqw 0 #d8322e) drop-shadow(0 -.6cqw 0 #d8322e); }
@media (min-width: 900px) { .st[data-story="nikuKaruta"] .st-big { font-size: 56px; } }
/* 勝った人 */
.st[data-story="nikuKaruta"] .st-label.nks-win { text-align: center; padding: 2cqw 0; border-radius: 99px; background: #ffd84a; color: #d8322e; text-shadow: none; -webkit-text-stroke: 0; font-size: 8cqw; font-weight: 900; box-shadow: 0 0 0 1cqw #fff, 0 1.6cqw 0 1cqw #6e1611; }
