/* Odtwarzacz fabuły – pełnoekranowa scena dotykowa */
.story {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(12, 16, 17, .9);
  backdrop-filter: blur(3px);
  color: #f3ecdc;
  animation: story-in .25s ease;
}
@keyframes story-in { from { opacity: 0; } to { opacity: 1; } }
.story-skip {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px;
  background: transparent; color: #f3ecdc; opacity: .8;
  border: 1.5px solid currentColor; border-radius: 999px; padding: .35em .9em; font: 700 .85rem var(--font-body);
}
.story-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; text-align: center; }
.story-narr {
  max-width: 30rem; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.5;
  animation: story-rise .45s ease both;
}
@keyframes story-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.story-box {
  margin: 0 auto; width: min(100%, 36rem);
  padding: 1.2rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
  background: var(--paper); color: var(--ink);
  border-radius: 18px 18px 0 0; border-top: 4px solid var(--who, var(--accent));
  min-height: 11rem;
  animation: story-rise .3s ease both;
}
.story-who {
  display: inline-block; margin: -2.1rem 0 .6rem;
  padding: .25em .8em; background: var(--who, var(--accent)); color: #fff;
  font: 800 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  border-radius: 6px; transform: rotate(-1.5deg);
}
.story-text { font-size: 1.12rem; line-height: 1.55; margin: 0 0 1rem; min-height: 3.4rem; }
.story-next { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.story-next i { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.story-choices { display: grid; gap: .6rem; margin-top: .4rem; }
.story-choices .btn { justify-content: flex-start; text-align: left; }
.story-dots { display: flex; gap: 4px; }
.story-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.story-dots span.on { background: var(--accent); }
