.story-card {
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid #507798;
  border-left: 3px solid #f5ce81;
  background: #102c48;
  color: #e0ebf5;
  text-align: left;
}
.story-card > b { display: block; margin-bottom: 6px; color: #ffe4ae; font-size: 14px; line-height: 1.4; }
.story-card > p { margin: 5px 0; color: #d5e3ef; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.story-card > small { display: block; margin-top: 8px; color: #9ed7ee; font-size: 12px; line-height: 1.5; }
.role-select .role-story { margin: 12px 0; padding: 10px 12px; }
.role-select .role-story > p { font-size: 12px; line-height: 1.5; }
.role-select .role-actions #roleBackBtn { min-width: 84px; }
.role-select .role-actions .role-x-link { min-width: 0; font-size: 12px; }
.run-clock .story-objective {
  max-width: 236px;
  margin: 0 auto 2px;
  color: #ffd992;
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-objective[hidden],.story-card[hidden],.pause-story-objective[hidden] { display: none; }
.pause-story-objective { margin: 0 0 14px; color: #ffe3a7; font-size: 13px; line-height: 1.6; letter-spacing: 0; }
.chapter-reward .modal-panel,.game-over .modal-panel { max-height: calc(100dvh - 40px); overflow-y: auto; }
.game-over .modal-panel > h2 { font-size: clamp(25px,3vw,34px); line-height: 1.3; }
.ending-story > p { font-size: 13px; }
.game-over.story-victory .ending-story { border-color: #e5bc69; background: #162d3e; }
@media (max-width: 780px) {
  .run-clock .story-objective { display: none; }
  .story-card { padding: 10px 12px; margin-bottom: 12px; }
  .story-card > b { font-size: 12px; }
  .story-card > p,.story-card > small { font-size: 11px; }
}
