/* Scoped to the Sanctuary's existing opening artwork card. */
.sc-lore-opening .ss-story,
.ss-story {
  position: relative;
  align-self: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(171, 192, 215, .18);
  border-radius: 12px;
  background: #080e18;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  color: #d8e1eb;
  text-align: left;
}
.ss-story,
.ss-story *,
.ss-story *::before,
.ss-story *::after { box-sizing: border-box; }
.sc-lore-opening .ss-story .ss-story-frame,
.ss-story .ss-story-frame {
  position: relative;
  width: 100%;
  max-width: 496px;
  max-height: 620px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #151c2d, #080e18 74%);
}
.ss-story .ss-story-frame-item {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.ss-story .ss-story-frame-item.ss-scene-current { z-index: 1; opacity: 1; }
.sc-lore-opening .ss-story .ss-story-frame-item img,
.ss-story .ss-story-frame-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.ss-story .ss-story-frame-item > figcaption { display: none; }
.ss-story .ss-story-kicker {
  display: block;
  margin: 0;
  padding: 20px 22px 7px;
  color: #bda985;
  font: 9px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ss-story .ss-story-caption {
  margin: 0;
  padding: 0 22px 19px;
  color: #c5d0df;
  font: 17px/1.55 Georgia, 'Times New Roman', serif;
}
.ss-story .ss-story-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(171, 192, 215, .12);
  background: #0d1521;
}
.ss-story .ss-scene-choices,
.ss-story .ss-story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ss-story button {
  min-height: 40px;
  border: 1px solid rgba(171, 192, 215, .18);
  border-radius: 6px;
  padding: 9px 11px;
  background: transparent;
  color: #aab9cc;
  font: 11px/1.35 Arial, Helvetica, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.ss-story .ss-scene-choice[aria-pressed='true'] {
  border-color: rgba(164, 195, 225, .48);
  background: rgba(121, 164, 208, .12);
  color: #e1ecf6;
}
.ss-story .ss-story-follow {
  border-color: transparent;
  color: #94a5bc;
}
.ss-story .ss-story-follow[aria-pressed='true'] { color: #b7d8ec; }
.ss-story [data-room-entry] {
  border-color: rgba(205, 184, 139, .45);
  background: rgba(205, 184, 139, .09);
  color: #e3d2ae;
}
.ss-story button:hover { border-color: #7993ae; color: #eef5fc; }
.ss-story button:focus-visible { outline: 2px solid #9cd0ec; outline-offset: 4px; }
.ss-story button:disabled { opacity: .45; cursor: default; }
.ss-story .ss-story-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .sc-lore-opening .ss-story .ss-story-frame,
  .ss-story .ss-story-frame { max-width: 416px; max-height: 520px; aspect-ratio: 4 / 5; }
  .ss-story .ss-story-kicker { padding: 17px 18px 6px; }
  .ss-story .ss-story-caption { padding: 0 18px 17px; font-size: 16px; }
  .ss-story .ss-story-controls { padding: 12px; gap: 8px; }
  .ss-story .ss-scene-choices { width: 100%; }
  .ss-story .ss-scene-choice { flex: 1; min-height: 44px; padding-inline: 7px; }
  .ss-story .ss-story-actions { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-story .ss-story-frame-item { animation: none !important; transition: none !important; }
}
