/* スタックサーカスの色：ゲーム画面と同じ、赤茶のサーカス幕のしま（#8e4a2b／#7f3f23）。
   字は生成り、強調は金（#f4c869）。ステージの床は焦げ茶の板。 */
.st[data-story="stackCircus"] {
  --st-bg: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 46px, rgba(255, 255, 255, .03) 46px 92px), linear-gradient(180deg, #9a5130, #7d3d22 60%, #6a321b);
  --st-fg: #fff7e8;
  --st-shade: 50, 16, 6;
  --st-dots: 0;
  --ink: #4a1d0d;
  --sun: #f4c869;
}
.st[data-story="stackCircus"] .st-hero-top img { width: min(60%, 290px); border-radius: 10px; box-shadow: 0 0 0 4px #f4c869, 0 16px 30px rgba(40, 10, 4, .5); }
.st[data-story="stackCircus"] .st-name { color: #fff7e8; text-shadow: 0 3px 0 rgba(74, 29, 13, .6); }
/* 入口の札は、ゲームの塔と同じく下から 28・20・8 と積む（重ねない） */
.st[data-story="stackCircus"] .st-hero-cards { aspect-ratio: 100 / 228; width: min(34%, 160px); }
.st[data-story="stackCircus"] .st-hero-cards img { width: 100%; left: 0; transform: none; animation: none; border-radius: 4%; box-shadow: 0 0 0 2px #fff, 0 8px 12px rgba(40, 10, 4, .45); }
.st[data-story="stackCircus"] .st-hero-cards img:nth-child(1) { top: 67.5%; }
.st[data-story="stackCircus"] .st-hero-cards img:nth-child(2) { top: 34%; }
.st[data-story="stackCircus"] .st-hero-cards img:nth-child(3) { top: 0; }
.st[data-story="stackCircus"] .st-num { background: #f4c869; color: #4a1d0d; box-shadow: none; }
.st[data-story="stackCircus"] .st-big { color: #f4c869; -webkit-text-stroke: 9px #4a1d0d; white-space: nowrap; font-size: clamp(30px, 9.6vw, 44px); }
.st[data-story="stackCircus"] .st-note-text { background: rgba(40, 10, 4, .35); color: #fff7e8; box-shadow: inset 0 0 0 1px rgba(244, 200, 105, .35); }
.st[data-story="stackCircus"] .st-know-list li, .st[data-story="stackCircus"] .st-author-card { background: rgba(40, 10, 4, .3); box-shadow: inset 0 0 0 1px rgba(244, 200, 105, .3); }
.st[data-story="stackCircus"] .st-ico { color: #f4c869; }
.st[data-story="stackCircus"] .st-prog i { background: rgba(255, 247, 232, .3); }
.st[data-story="stackCircus"] .st-prog i.is-past { background: rgba(255, 247, 232, .7); }
.st[data-story="stackCircus"] .st-prog i.is-now, .st[data-story="stackCircus"] .st-prog.is-done i { background: #f4c869; }
.st[data-story="stackCircus"] .st-prog em { color: #f4c869; }
.st[data-story="stackCircus"] .st-bub { background: #fff7e8; color: #4a1d0d; text-shadow: none; box-shadow: 0 4px 0 #4a1d0d; }
.st[data-story="stackCircus"] .st-bub-go { background: #f4c869; color: #4a1d0d; }
.st[data-story="stackCircus"] .st-bub::before, .st[data-story="stackCircus"] .st-bub::after { content: none; }
.st[data-story="stackCircus"] .st-next span { background: #f4c869; color: #4a1d0d; }
.st[data-story="stackCircus"] .st-meta li:not(:first-child) { color: #fff7e8; background: rgba(255, 255, 255, .14); }

/* ---- 卓 ---- */
.st[data-story="stackCircus"] .st-table { container-type: inline-size; }
.st[data-story="stackCircus"] .scs-stage { border-radius: 1cqw; background: linear-gradient(#6b3a1f, #4a2412); box-shadow: 0 1cqw 2cqw rgba(30, 8, 2, .5); }
.st[data-story="stackCircus"] .scs-card { border-radius: .9cqw; box-shadow: 0 0 0 .5cqw #fff, 0 1cqw 1.6cqw rgba(30, 8, 2, .45); 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 .3s, filter .3s, opacity .4s; }
.st[data-story="stackCircus"] .scs-card.is-lift { filter: drop-shadow(0 2cqw 1.6cqw rgba(30, 8, 2, .5)); }
.st[data-story="stackCircus"] .scs-card.is-glow { animation: scsGlow .9s ease-in-out infinite; }
@keyframes scsGlow { 0%, 100% { scale: 1; box-shadow: 0 0 0 .5cqw #fff, 0 1cqw 1.6cqw rgba(30, 8, 2, .45); } 50% { scale: 1.06; box-shadow: 0 0 0 .7cqw #f4c869, 0 0 4cqw rgba(244, 200, 105, .9); } }
/* 着地でぽよんと弾む／はじかれる（scale・translate だけで動かす） */
.st[data-story="stackCircus"] .scs-card.scs-land { animation: scsLand .4s ease-out; }
@keyframes scsLand { 0% { scale: 1.08 .9; } 60% { scale: .97 1.04; } 100% { scale: 1; } }
.st[data-story="stackCircus"] .scs-card.scs-reject { animation: scsReject .5s ease-in-out; box-shadow: 0 0 0 .7cqw #e0452b, 0 1cqw 1.6cqw rgba(30, 8, 2, .45); }
@keyframes scsReject { 0%, 100% { translate: 0 0; } 20% { translate: -4% 0; } 40% { translate: 4% 0; } 60% { translate: -3% 0; } 80% { translate: 3% 0; } }
.st[data-story="stackCircus"] .scs-card.scs-flip { animation: scsFlip .5s ease-in-out; }
@keyframes scsFlip { 0%, 100% { scale: 1 1; } 46%, 54% { scale: .02 1.06; } }
.st[data-story="stackCircus"] .scs-card.scs-away { opacity: 0; translate: 0 30%; transition: opacity .5s, translate .5s; }
.st[data-story="stackCircus"] .scs-slot { border-radius: .9cqw; box-shadow: inset 0 0 0 .4cqw rgba(255, 247, 232, .35); background: rgba(40, 10, 4, .25); }
/* 文字の札 */
.st[data-story="stackCircus"] .st-label.scs-say { text-align: center; text-shadow: none; -webkit-text-stroke: 0; color: #fff7e8; font-weight: 900; font-size: 4cqw; }
.st[data-story="stackCircus"] .st-label.scs-say.is-small { font-size: 3.2cqw; font-weight: 700; color: rgba(255, 247, 232, .8); }
.st[data-story="stackCircus"] .st-label.scs-say.is-left { text-align: left; }
.st[data-story="stackCircus"] .st-label.scs-say.is-name { font-size: 3.6cqw; }
.st[data-story="stackCircus"] .st-label.scs-say.is-lv { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #f4c869; color: #4a1d0d; font-size: 3.2cqw; }
.st[data-story="stackCircus"] .st-label.scs-say.is-calc { text-align: left; font-size: 6cqw; line-height: 1.5; }
.st[data-story="stackCircus"] .scs-say b { font-size: 8cqw; color: #f4c869; }
.st[data-story="stackCircus"] .scs-say em { font-style: normal; color: #f4c869; font-size: 7cqw; }
.st[data-story="stackCircus"] .st-label.scs-say.is-calc.is-glow { animation: scsCalc .9s ease-in-out infinite; }
@keyframes scsCalc { 50% { scale: 1.06; filter: drop-shadow(0 0 1.6cqw rgba(244, 200, 105, .9)); } }
.st[data-story="stackCircus"] .st-label.scs-say.is-bonus { padding: .8cqw 0; border-radius: 99px; background: #f4c869; color: #4a1d0d; font-size: 4.2cqw; box-shadow: 0 .8cqw 0 #4a1d0d; }
@media (min-width: 900px) { .st[data-story="stackCircus"] .st-big { font-size: 52px; } }
