.story-panel {
  position: absolute;
  inset: 0;
  z-index: 18;
  overflow: hidden;
  color: #f5fcff;
  background: #07101d;
  isolation: isolate;
}
.story-panel[hidden] { display: none; }
.story-art { position: absolute; inset: 0; overflow: hidden; }
.story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 650ms ease;
  user-select: none;
}
.story-image.is-active { opacity: 1; animation: story-drift 7s ease-out both; }
.story-held .story-image { animation-play-state: paused; }
.story-caption {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 5%, 42px);
  padding-top: clamp(60px, 13%, 104px);
  background: linear-gradient(transparent, rgba(3, 9, 19, .87) 34%, rgba(3, 9, 19, .98));
  text-align: left;
}
.story-counter { margin: 0 0 9px; font: 600 11px ui-monospace, monospace; letter-spacing: .16em; color: #98e8ff; }
.story-copy h2 { margin: 0 0 12px; font: 700 clamp(20px, 4.2vw, 36px)/1.15 system-ui, sans-serif; letter-spacing: -.025em; }
.story-copy > p:last-child { max-width: 660px; margin: 0; font: 400 clamp(12px, 1.65vw, 17px)/1.55 system-ui, sans-serif; color: #d6e6f2; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.story-actions button { border: 1px solid rgba(153, 210, 242, .4); padding: 9px 15px; border-radius: 5px; background: rgba(9, 23, 41, .82); color: #f2faff; font: 600 12px system-ui, sans-serif; cursor: pointer; }
.story-actions button[hidden] { display: none; }
.story-actions .story-next { background: #bcf5ff; border-color: #bcf5ff; color: #081d2b; }
.story-actions button:focus-visible { outline: 2px solid #fff1ab; outline-offset: 4px; }
.story-controls { margin: 13px 0 0; color: #80a0b9; font: 10px ui-monospace, monospace; }
.story-reduced .story-image { transition: none; transform: none; animation: none; }
@keyframes story-drift { from { transform: scale(1.035); } to { transform: scale(1.095); } }
@media (prefers-reduced-motion: reduce) { .story-image { transition: none; transform: none; animation: none; } }
@media (max-width: 480px) {
  .story-caption { padding: 18px; padding-top: 55px; }
  .story-copy h2 { font-size: 20px; margin-bottom: 8px; }
  .story-copy > p:last-child { font-size: 11px; line-height: 1.4; }
  .story-counter { font-size: 9px; margin-bottom: 7px; }
  .story-actions { gap: 7px; margin-top: 13px; }
  .story-actions button { padding: 8px 11px; font-size: 10px; }
  .story-controls { display: none; }
}
