/* トリニティの色：ゲーム画面と同じ、暗い青緑（#0a171b）に縦の細い線の地に白い字。
   強調は水色（#19c3d2）。言った数字は黒い四角に数字ごとの色の縁、効果でわかったことは角を切った板（ゲームと同じ）。 */
.st[data-story="trinity"] {
  --st-bg: linear-gradient(rgba(7, 17, 20, .35), rgba(7, 17, 20, .75) 75%), url(/assets/story/trinity/bg.webp) top center / 100% auto repeat-y, #0a171b;
  --st-fg: #f4fafb;
  --st-shade: 0, 0, 0;
  --st-dots: 0;
  --ink: #071114;
  --sun: #19c3d2;
}
.st[data-story="trinity"] .st-hero h1 img { width: min(84%, 520px); filter: drop-shadow(0 0 18px rgba(25, 195, 210, .45)) drop-shadow(0 6px 0 rgba(0, 0, 0, .6)); }
.st[data-story="trinity"] .st-catch { color: #fff; }
.st[data-story="trinity"] .st-hero-cards { aspect-ratio: 100 / 52; width: min(64%, 290px); }
.st[data-story="trinity"] .st-hero-cards img { width: 30%; border-radius: 4%; box-shadow: 0 0 0 1px rgba(25, 195, 210, .5), 0 12px 18px rgba(0, 0, 0, .6); }
.st[data-story="trinity"] .st-hero-cards img:nth-child(1) { left: 6%; top: 10%; transform: rotate(-10deg); }
.st[data-story="trinity"] .st-hero-cards img:nth-child(2) { left: 35%; top: 0; transform: rotate(1deg); }
.st[data-story="trinity"] .st-hero-cards img:nth-child(3) { left: 64%; top: 10%; transform: rotate(11deg); }
/* 番号・ボタン・矢印：ゲームの「角を切った板」と水色 */
.st[data-story="trinity"] .st-num { background: #19c3d2; color: #071114; box-shadow: none; border-radius: 0; clip-path: polygon(22% 0, 100% 0, 100% 78%, 78% 100%, 0 100%, 0 22%); }
.st[data-story="trinity"] .st-big { color: #fff; -webkit-text-stroke: 8px #071114; text-shadow: 0 0 22px rgba(25, 195, 210, .9), 0 6px 0 rgba(0, 0, 0, .6); white-space: nowrap; font-size: clamp(30px, 9.4vw, 44px); font-style: italic; }
.st[data-story="trinity"] .st-note-text { background: rgba(4, 10, 12, .8); color: #dde6e8; box-shadow: inset 0 0 0 1px rgba(25, 195, 210, .45); }
.st[data-story="trinity"] .st-know-list li, .st[data-story="trinity"] .st-author-card { background: rgba(4, 10, 12, .75); box-shadow: inset 0 0 0 1px rgba(25, 195, 210, .35); }
.st[data-story="trinity"] .st-ico { color: #19c3d2; }
.st[data-story="trinity"] .st-prog i { background: rgba(255, 255, 255, .25); }
.st[data-story="trinity"] .st-prog i.is-past { background: rgba(255, 255, 255, .6); }
.st[data-story="trinity"] .st-prog i.is-now, .st[data-story="trinity"] .st-prog.is-done i { background: #19c3d2; }
.st[data-story="trinity"] .st-prog em { color: #19c3d2; }
.st[data-story="trinity"] .st-bub { background: #040a0c; color: #19c3d2; text-shadow: none; box-shadow: inset 0 0 0 2px #19c3d2; border-radius: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.st[data-story="trinity"] .st-bub-go { background: #19c3d2; color: #071114; box-shadow: none; }
.st[data-story="trinity"] .st-bub::before, .st[data-story="trinity"] .st-bub::after { content: none; }
.st[data-story="trinity"] .st-next span { background: #19c3d2; color: #071114; }
.st[data-story="trinity"] .st-meta li:not(:first-child) { color: #fff; background: rgba(255, 255, 255, .1); }
.st[data-story="trinity"] .st-label.is-tag { background: rgba(4, 10, 12, .7); box-shadow: inset 0 0 0 1.5px rgba(25, 195, 210, .6); color: #f4fafb; border-radius: 0; }

/* ---- 卓 ---- */
.st[data-story="trinity"] .st-table { container-type: inline-size; }
.st[data-story="trinity"] .trs-card { background: #071114; border-radius: .7cqw; box-shadow: 0 0 0 .25cqw rgba(25, 195, 210, .35), 0 .8cqw 1.6cqw rgba(0, 0, 0, .6); 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 .35s, filter .3s; }
.st[data-story="trinity"] .trs-card img { display: block; width: 100%; border-radius: .7cqw; }
.st[data-story="trinity"] .trs-card.is-glow { animation: trsGlow .9s ease-in-out infinite; }
@keyframes trsGlow { 0%, 100% { scale: 1; box-shadow: 0 0 0 .45cqw #19c3d2, 0 .8cqw 1.6cqw rgba(0, 0, 0, .6); } 50% { scale: 1.06; box-shadow: 0 0 0 .6cqw #7fe9f2, 0 0 4.5cqw rgba(25, 195, 210, .85); } }
.st[data-story="trinity"] .trs-card.is-lift { filter: drop-shadow(0 0 1.6cqw #19c3d2); }
.st[data-story="trinity"] .trs-card.trs-flip { animation: trsFlip .5s ease-in-out; }
@keyframes trsFlip { 0%, 100% { scale: 1 1; } 46%, 54% { scale: .02 1.06; } }
/* 言った数字：黒い四角に色の縁、白い斜体の数字（ゲームと同じ） */
.st[data-story="trinity"] .st-label.trs-call { aspect-ratio: 1; display: grid; place-items: center; background: #040a0c; color: #fff; -webkit-text-stroke: 0; text-shadow: none; font-size: 7.4cqw; font-style: italic; font-weight: 900; line-height: 1; box-shadow: inset 0 0 0 .6cqw var(--c, #19c3d2), 0 .6cqw 1.2cqw rgba(0, 0, 0, .55); }
.st[data-story="trinity"] .st-label.trs-call.is-glow { animation: trsCall .8s ease-in-out infinite; }
@keyframes trsCall { 50% { scale: 1.12; box-shadow: inset 0 0 0 .6cqw var(--c, #19c3d2), 0 0 3cqw var(--c, #19c3d2); } }
/* 答え：水色の札＋黒い帯（三角の印） */
.st[data-story="trinity"] .st-label.trs-ans { display: flex; flex-direction: column; align-items: center; gap: .8cqw; -webkit-text-stroke: 0; text-shadow: none; }
.st[data-story="trinity"] .trs-ans b { background: #19c3d2; color: #071114; font-weight: 900; font-size: 5.4cqw; padding: .6cqw 3.6cqw; clip-path: polygon(1.6cqw 0, 100% 0, 100% calc(100% - 1.6cqw), calc(100% - 1.6cqw) 100%, 0 100%, 0 1.6cqw); }
.st[data-story="trinity"] .trs-ans span { display: flex; align-items: center; gap: 2cqw; background: #040a0c; color: #fff; font-weight: 900; font-size: 4.8cqw; padding: 1.4cqw 4cqw; box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .6); }
.st[data-story="trinity"] .trs-tri { position: relative; width: 6cqw; aspect-ratio: 1; flex: none; background: linear-gradient(#fff, #fff) 50% 8% / .5cqw 0 no-repeat; }
.st[data-story="trinity"] .trs-tri::before { content: ''; position: absolute; inset: 8% 4% 10%; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #fff; }
.st[data-story="trinity"] .trs-tri::after { content: ''; position: absolute; inset: 18% 14% 18%; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #040a0c; }
/* 効果でわかったこと：角を切った黒い板、縁と見出しは出したカードの色、白い斜体の大きな数字 */
.st[data-story="trinity"] .st-label.trs-info { display: flex; flex-direction: column; align-items: center; padding: 1cqw 0 1.4cqw; background: #040a0c; -webkit-text-stroke: 0; text-shadow: none; box-shadow: inset 0 0 0 .5cqw var(--c, #19c3d2), 0 1cqw 2cqw rgba(0, 0, 0, .6); clip-path: polygon(2.2cqw 0, 100% 0, 100% calc(100% - 2.2cqw), calc(100% - 2.2cqw) 100%, 0 100%, 0 2.2cqw); line-height: 1.1; }
.st[data-story="trinity"] .trs-info small { color: var(--c, #19c3d2); font-size: 3.4cqw; font-weight: 900; }
.st[data-story="trinity"] .trs-info b { color: #fff; font-size: 9cqw; font-style: italic; font-weight: 900; }
.st[data-story="trinity"] .st-label.trs-info.is-small { transition: none; }
/* わからない場所の「？」 */
.st[data-story="trinity"] .st-label.trs-q { color: #19c3d2; font-size: 14cqw; font-weight: 900; -webkit-text-stroke: 1.2cqw #071114; paint-order: stroke fill; text-shadow: 0 0 3cqw rgba(25, 195, 210, .8); }
/* 合計からわかった数字の札（並び順はまだ） */
.st[data-story="trinity"] .st-label.trs-chips { display: flex; justify-content: center; gap: 2.4cqw; -webkit-text-stroke: 0; text-shadow: none; }
.st[data-story="trinity"] .trs-chips i { display: grid; place-items: center; width: 10cqw; aspect-ratio: 1; background: #040a0c; color: #fff; font-size: 6.6cqw; font-weight: 900; box-shadow: inset 0 0 0 .55cqw var(--c, #19c3d2), 0 .6cqw 1.2cqw rgba(0, 0, 0, .55); }
.st[data-story="trinity"] .st-label.trs-chips.is-set i { animation: trsCall .8s ease-in-out infinite; }
@media (min-width: 900px) { .st[data-story="trinity"] .st-big { font-size: 52px; } }
