.story-launch {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  color: #edd8af;
  white-space: nowrap;
  border: 1px solid #ddc49477;
  border-radius: 5px;
}
.story-launch:hover {
  background: #ddc49418;
}
.story-launch svg {
  width: 16px;
  height: 16px;
}
.story-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #162b2c;
  background: #f3d354;
  border-radius: 5px;
}
.story-primary:hover {
  background: #ffe171;
}
.story-route-choice {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--cream);
}
.story-route-choice select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  font: inherit;
  color: #eceddf;
  background: #203b3c;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.story-route {
  display: grid;
  gap: 13px;
  padding: 19px 0;
  margin: 16px 0 23px;
  font-size: 12px;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.story-route span {
  margin-right: 17px;
  font-size: 10px;
  color: var(--gold);
}
.story-note {
  font-size: 10px !important;
  line-height: 1.7 !important;
  color: #a3b9af !important;
}
#story-fade {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: #142124;
  opacity: 0;
}
.story-active .chrome,
.story-active #driver-panel,
.story-active #walk-controls,
.story-active #platform-detail,
.story-active #exit-immersive {
  display: none !important;
}
.story-active .scrim {
  display: block;
  background: linear-gradient(
    180deg,
    #09161965,
    transparent 19%,
    transparent 68%,
    #09161965
  );
}
.story-active .scrim:after {
  display: none;
}
#story-panel {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.story-topline {
  position: absolute;
  top: 24px;
  right: 32px;
  left: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 7px #000;
}
.story-separator {
  margin: 0 12px;
  color: var(--gold);
}
#story-exit {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 11px 15px;
  font-size: 11px;
  letter-spacing: 0;
  pointer-events: auto;
  background: #142b2cda;
  border: 1px solid #ffffff33;
  border-radius: 6px;
}
.story-card {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: min(720px, calc(100% - 40px));
  padding: 19px 24px 15px;
  pointer-events: auto;
  background: #102528ed;
  border: 1px solid #ffffff28;
  border-radius: 9px;
  box-shadow: 0 12px 40px #0004;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.story-overline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #dcca9f;
  letter-spacing: 0.15em;
}
#story-location {
  font-size: 10px;
  color: #b7c9c0;
  letter-spacing: 0;
}
.story-card h2 {
  margin: 9px 0 7px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}
.story-card p {
  max-width: 610px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #c8d6cc;
}
.story-timeline {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 11px 0 8px;
}
.story-timeline input {
  flex: 1;
  min-width: 0;
  height: 18px;
  margin: 0;
}
.story-timeline output {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #b9c9bc;
  white-space: nowrap;
}
.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.story-actions button {
  min-height: 39px;
  padding: 10px 12px;
  font-size: 11px;
  border: 1px solid #ffffff29;
  border-radius: 4px;
}
#story-pause,
#story-explore {
  color: #182b29;
  background: #eed158;
  border-color: #eed158;
}
#story-explore {
  margin-left: auto;
}
.story-actions button:hover {
  filter: brightness(1.15);
}
.story-speed-label {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-left: auto;
  font-size: 10px;
  color: #b4c6bc;
}
.story-card select {
  padding: 8px;
  font: inherit;
  color: #eceddf;
  background: #203b3c;
  border: 1px solid #ffffff24;
  border-radius: 4px;
}
.story-chapters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 11px;
  font-size: 9px;
  color: #a9beb2;
}
.story-chapters select {
  max-width: 270px;
  padding: 5px 7px;
  font-size: 10px;
}
.story-chapters > span {
  margin-left: auto;
  font-size: 9px;
}
#story-exit span {
  font-size: 20px;
}
@media (max-width: 1300px) {
  .topbar .project-mark {
    display: none;
  }
}
@media (max-width: 700px) {
  .story-launch {
    width: 34px;
    padding: 7px;
  }
  .story-launch span {
    display: none;
  }
  .story-topline {
    top: 17px;
    right: 18px;
    left: 18px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }
  .story-separator {
    margin: 0 6px;
  }
  #story-exit {
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .story-card {
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 14px;
  }
  .story-card h2 {
    font-size: 22px;
  }
  .story-card p {
    font-size: 11px;
    line-height: 1.5;
  }
  .story-overline {
    gap: 7px;
    font-size: 7px;
  }
  #story-location {
    font-size: 9px;
  }
  .story-actions {
    gap: 6px;
  }
  .story-actions button {
    min-height: 39px;
    padding: 9px;
    font-size: 10px;
  }
  .story-speed-label {
    font-size: 0;
  }
  .story-speed-label select {
    padding: 8px 4px;
    font-size: 11px;
  }
  .story-chapters > span {
    display: none;
  }
  .story-chapters select {
    flex: 1;
    max-width: calc(100% - 44px);
  }
  .story-timeline {
    margin: 9px 0 7px;
  }
  .story-topline > span {
    max-width: 180px;
    line-height: 1.7;
  }
  #story-explore {
    flex: 1;
    margin-left: 0;
  }
}
@media (max-height: 550px) {
  .story-card {
    bottom: 10px;
    padding: 10px 15px;
  }
  .story-card h2 {
    margin: 4px 0;
    font-size: 19px;
  }
  .story-card p {
    font-size: 10px;
  }
  .story-chapters {
    display: none;
  }
  .story-overline {
    font-size: 7px;
  }
  .story-topline {
    top: 10px;
  }
  .story-actions button {
    min-height: 32px;
    padding: 7px 10px;
  }
  .story-timeline {
    margin: 5px 0;
  }
}
