/* Story Mode bar: back / stop name / next / exit, docked at the bottom. */

.story-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(27, 22, 48, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(10, 4, 24, 0.5);
  transform: translateX(-50%);
}
.story-bar[hidden] { display: none; }
.story-bar__btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: var(--navy);
  font-size: 18px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}
.story-bar__btn:disabled { opacity: 0.35; cursor: default; }
.story-bar__label { margin: 0; min-width: 170px; text-align: center; font-size: 13px; color: var(--muted); }
.story-bar__label strong { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--text); }
.story-bar__exit {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}
body.is-story .toast { bottom: 100px; }

@media (max-width: 820px) {
  .story-bar { bottom: 12px; width: calc(100% - 24px); justify-content: space-between; }
  .story-bar__label { min-width: 0; }
}
