.presale-stories {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro player" "index player";
  align-items: start;
  column-gap: clamp(32px, 7vw, 104px);
  row-gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 7vw, 96px);
}

.stories-intro {
  grid-area: intro;
  padding-top: clamp(18px, 4vw, 52px);
}

.stories-intro p {
  max-width: 34ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.stories-player {
  grid-area: player;
  min-width: 0;
}

.presale-stories [hidden] { display: none; }

.stories-position {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stories-position progress {
  flex: 1;
  min-width: 0;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  appearance: none;
  background: var(--line);
  color: var(--brand);
}

.stories-position progress::-webkit-progress-bar { background: var(--line); }
.stories-position progress::-webkit-progress-value { background: var(--brand); }
.stories-position progress::-moz-progress-bar { background: var(--brand); }

.stories-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  border-radius: 66px 5px 5px 5px;
  background: var(--wash);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.stories-track::-webkit-scrollbar { display: none; }
.stories-track:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 5px; }

.story-slide {
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  min-width: 0;
  max-height: 510px;
  margin: 0;
  aspect-ratio: 6 / 5;
  scroll-snap-align: start;
  background: #251e19;
}

.story-slide img, .story-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-slide img {
  object-fit: cover;
  object-position: center 46%;
}

.story-slide::after {
  content: "";
  background: linear-gradient(180deg, transparent 22%, rgb(24 16 11 / 22%) 46%, rgb(19 13 9 / 64%) 74%, rgb(16 11 8 / 91%) 100%);
  pointer-events: none;
}

.story-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(19px, 4vw, 42px);
  color: #fffaf5;
  overflow-wrap: anywhere;
}

.story-caption .story-category {
  margin-bottom: 6px;
  color: #ffe2cb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.story-caption h3 { margin-bottom: 9px; font-size: clamp(29px, 4vw, 45px); }
.story-caption p { max-width: 43ch; font-size: 15px; line-height: 1.65; }

.stories-actions { display: flex; align-items: stretch; gap: 8px; margin-top: 14px; }
.stories-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 46px;
  min-height: 46px;
  padding-inline: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
}
@media (hover:hover) and (pointer:fine) {
.stories-actions > button:hover:not([aria-disabled="true"]) { background: var(--brand-soft); }
}
.stories-actions > button[aria-disabled="true"] { opacity: .42; cursor: default; }
.stories-actions .icon { width: 19px; height: 19px; }
.stories-actions .story-prev .icon { transform: rotate(180deg); }
.stories-actions .stories-cta { flex: 1; justify-content: space-between; gap: 9px; }
.stories-index { grid-area: index; min-width: 0; }
.stories-index summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.stories-index ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stories-index button {
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: left;
}
@media (hover:hover) and (pointer:fine) {
.stories-index button:hover { background: var(--brand-soft); color: var(--brand-text); }
}
.stories-index [aria-current="true"] { background: var(--brand-soft); color: var(--brand-text); }

.stories-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .presale-stories {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "player" "index";
    gap: 14px;
  }
  .stories-intro { padding-top: 0; margin-bottom: 8px; }
  .stories-intro p { max-width: 45ch; margin-top: 12px; font-size: 14px; }
  .stories-track { border-top-left-radius: 42px; }
  .story-slide { aspect-ratio: 4 / 4.55; }
  .story-caption h3 { font-size: clamp(27px, 6.8vw, 36px); }
  .story-caption p { font-size: 14px; }
  .stories-actions { margin-top: 11px; }
  .stories-actions .stories-cta { padding-inline: 13px; }
}

@media (max-width: 420px) {
  .story-next span { display: none; }
}
