/* Starwise 5.6.0 — quieter story builder */

.story-creator {
  max-width: 1040px;
  margin: 0 auto;
}

.story-selection-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(184, 200, 216, .12);
  border-radius: 0;
  background: transparent;
}

.story-selection-steps span {
  position: relative;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px 9px;
  border-radius: 0;
  font-size: 7px;
}

.story-selection-steps span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: transparent;
}

.story-selection-steps span.active {
  background: transparent;
}

.story-selection-steps span.active::after {
  background: var(--accent);
}

.story-selection-steps span i {
  width: 18px;
  height: 18px;
}

.story-creator-hero {
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.story-creator-hero h3 {
  margin: 7px 0 6px;
  font-size: clamp(29px, 4.2vw, 38px);
}

.story-creator-hero p {
  max-width: 650px;
  font-size: 9px;
  line-height: 1.65;
}

.story-creator-hero > span {
  display: flex;
  min-width: auto;
  align-items: baseline;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(184, 200, 216, .14);
  border-radius: 999px;
  background: rgba(5, 8, 14, .34);
  text-align: left;
}

.story-creator-hero > span strong {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.story-creator-hero > span small {
  font-size: 7px;
}

.story-mode-choice {
  gap: 12px;
  margin-top: 16px;
}

.story-mode-choice > header {
  gap: 4px;
}

.story-mode-choice > header strong {
  font-size: 18px;
  font-weight: 600;
}

.story-mode-choice > header span {
  font-size: 11px;
  line-height: 1.5;
}

.story-mode-choice > div {
  gap: 8px;
}

.story-mode-card {
  min-height: 0;
  gap: 7px;
  padding: 16px 17px;
  border-radius: 11px;
  background: rgba(7, 14, 23, .78);
  box-shadow: none;
}

.story-mode-card.recommended {
  border-color: rgba(143, 231, 255, .34);
  background: linear-gradient(145deg, rgba(16, 35, 52, .72), rgba(7, 15, 24, .86));
}

.story-mode-card:hover:not(:disabled),
.story-mode-card:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: none;
}

.story-mode-card strong {
  font-size: 16px;
}

.story-mode-card span {
  max-width: 430px;
  font-size: 11px;
  line-height: 1.5;
}

.story-mode-card em {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.45;
}

.story-event-group {
  margin-top: 14px;
  border-radius: 11px;
}

.story-event-group > header {
  min-height: 64px;
  padding: 11px 14px;
}

.story-step-actions {
  padding: 11px 13px;
}

@media (max-width: 700px) {
  .story-selection-steps {
    overflow: visible;
  }

  .story-selection-steps span {
    justify-content: center;
    padding-inline: 3px;
  }

  .story-selection-steps span i {
    display: none;
  }

  .story-creator-hero {
    align-items: flex-start;
    padding: 17px 0;
  }

  .story-creator-hero > span {
    margin-top: 3px;
  }

  .story-mode-choice > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .story-creator-hero {
    display: grid;
    gap: 11px;
  }

  .story-creator-hero > span {
    justify-self: start;
  }

  .story-mode-card {
    padding: 14px;
  }
}
