/* ═══════════════════════════════════════════════════════════════
   MAIN QUEST (story.php: chapter list + one chapter)
   Builds on css/character.css and css/events.css (quest cards, opponents, tabs); everything here is st-* scoped.
   Static by design: no loaders or entrance animations.
   ═══════════════════════════════════════════════════════════════ */

.st .st-link { color: var(--acc2); font-weight: 600; text-decoration: none; }
.st .st-link:hover { text-decoration: underline; }
.st-crumb { margin: 12px 0 0; color: var(--text-3); font-size: 0.85rem; }
.st .st-crumb a { color: var(--text-2); text-decoration: none; }
.st .st-crumb a:hover { color: #fff; text-decoration: underline; }

/* ── Chapter list ───────────────────────────────────────────────── */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.st-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel-bg); color: var(--text); text-decoration: none; }
.st-card-art { display: block; aspect-ratio: 864 / 488; background: rgba(0, 0, 0, 0.3); }   /* the chapter's key art (/assets/main_story) */
.st-card-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-card-main { display: flex; align-items: center; gap: 14px; flex: 1; padding: 12px 14px; }
.st-card a:hover { border-color: var(--acc2); }
.st-card .ev-foe-ic { flex: none; width: 72px; }
.st-card .ev-foe-ic:not(.is-generic) .ev-foe-attr { width: 26%; height: 26%; }   /* the type badge: small on the big portrait */
.st-card .ev-plate { width: 104px; }
.st-card-body { display: grid; gap: 3px; min-width: 0; }
.st-card-no { color: var(--acc2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cd-jp .st-card-no { letter-spacing: 0; }
.st-card-no small { margin-left: 6px; color: var(--text-3); font-weight: 500; letter-spacing: 0; text-transform: none; }
.st-card-name { font: 400 1.15rem/1.25 var(--font-display); color: #fff; overflow-wrap: anywhere; }
.st-card-row { color: var(--text-2); font-size: 0.78rem; line-height: 1.4; }
.st-card-row b { color: var(--text); font-weight: 700; }

/* ── One chapter ────────────────────────────────────────────────── */
.st-hero { display: block; width: 100%; max-width: 720px; height: auto; margin-top: 12px; border-radius: var(--radius); }
.st-sum { margin: 0 0 8px; color: var(--text-2); max-width: 820px; }
.st-sub { margin: 0 0 10px; }
.st-totals { margin: 0 0 14px; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.st-q { scroll-margin-top: 12px; }
.st-q.st-target { outline: 2px solid var(--gold); outline-offset: 2px; }
.st-scene { background: rgba(91, 149, 237, 0.07); }
.st-unlocks { display: flex; flex-wrap: wrap; gap: 5px; }
.st .st-unlock { display: inline-block; padding: 1px 9px; border-radius: 999px; background: rgba(255, 213, 83, 0.14); color: #ffe08a; font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.st a.st-unlock:hover { background: rgba(255, 213, 83, 0.26); }
.st .ev-foe-txt b .ev-badge { margin-left: 4px; vertical-align: middle; }
.st-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-nav-a { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--panel-border); border-radius: 10px; background: var(--panel-bg); color: var(--text); text-decoration: none; }
.st-nav-a:hover { border-color: var(--acc2); }
.st-nav-a small { color: var(--text-3); font-size: 0.75rem; }
.st-nav-a span { font-size: 0.9rem; line-height: 1.3; overflow-wrap: anywhere; }
.st-nav-a.is-next { text-align: right; }
