/* The voyage strip along the bottom of the stage: day ticks, nights, the zone
   blocks with their labels, the two ends and the playhead. Positions along the
   voyage come from voyage.css, written by the build. */
.strip {
  margin: 0;
}

.strip-art {
  position: relative;
  height: 210px;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  border-top: 1px solid var(--seam);
  border-bottom: 1px solid var(--seam);
  background: var(--pane);
}

.strip .note {
  margin: 0;
  padding: 8px 0 12px;
}

.inner {
  position: absolute;
  inset: 0 var(--gutter);
}

.tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 100%;
  background: rgb(255 255 255 / 0.035);
}

.tick-label {
  position: absolute;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 16px;
  color: var(--faint);
  white-space: nowrap;
}

.track,
.wake {
  position: absolute;
  bottom: 56px;
  left: 0;
  height: 10px;
  border-radius: 2px;
  background: var(--control);
}

.track {
  right: 0;
}

.wake {
  width: 100%;
  background: var(--edge);
  opacity: 0.6;
}

.night-band {
  position: absolute;
  bottom: 40px;
  height: 8px;
  border-radius: 1px;
  background: var(--night);
  opacity: 0.75;
}

/* A zone block rises when the ship reaches it; its label appears when the ship
   has left it. Both are the finished state by default. */
.zone-block {
  position: absolute;
  bottom: 56px;
  border-radius: 2px 2px 0 0;
  transform-origin: 50% 100%;
  transition:
  transform 0.5s var(--ease-out),
  opacity 0.3s;
}

.zone-block.wait {
  opacity: 0.45;
  transform: scaleY(0.06);
}

.zone-block.a {
  height: 135px;
  background: rgb(224 86 106 / 0.32);
  box-shadow: inset 0 0 0 1px var(--jwc);
}

.zone-block.b {
  height: 85px;
  background: rgb(63 167 201 / 0.32);
  box-shadow: inset 0 0 0 1px var(--ibf);
}

/* The label sits above the playhead, and each line is backed with the strip's
   own colour, so the playhead passes behind the text instead of through it. */
.zone-label {
  position: absolute;
  z-index: 1;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  transition: opacity 0.4s;
}

.zone-label > * {
  display: block;
  width: fit-content;
  background: var(--pane);
}

.zone-label.wait {
  opacity: 0;
}

.zone-label b {
  display: block;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.zone-night {
  color: var(--muted);
}

/* A's label rises beside its block; B's sits just above the track. */
.zone-label.a {
  bottom: 140px;
  border-color: var(--jwc);
  color: var(--jwc-text);
}

.zone-label.b {
  bottom: 74px;
  border-color: var(--ibf);
  color: var(--ibf-text);
}

.end {
  position: absolute;
  bottom: 70px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
}

.end b {
  color: var(--text);
  font-weight: 600;
}

.end.start {
  left: 0;
}

.end.finish {
  right: 12px;
  text-align: right;
}

.head {
  position: absolute;
  top: 20px;
  bottom: 30px;
  left: 100%;
  width: 2px;
  margin-left: -2px;
  background: var(--accent);
  pointer-events: none;
}

.head::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .strip-art {
    height: 170px;
  }

  .zone-block.a {
    height: 100px;
  }

  .zone-block.b {
    height: 64px;
  }

  .zone-label.a {
    bottom: 112px;
  }

  .zone-label.b {
    bottom: 70px;
  }

  .zone-label b {
    font-size: 16px;
    line-height: 22px;
  }

  .zone-night,
  .end .d {
    display: none;
  }

  .tick-label:not(:nth-of-type(4n + 1)) {
    display: none;
  }
}

/* A short window (a laptop, or a phone with its browser bars showing): the same
   stage, tighter, so the caption and the strip still fit under the counters. */
@media (max-height: 800px) {
  .strip-art {
    height: 170px;
  }

  .zone-block.a {
    height: 100px;
  }

  .zone-block.b {
    height: 64px;
  }

  .zone-label.a {
    bottom: 112px;
  }

  .zone-label.b {
    bottom: 70px;
  }

  .strip .note {
    padding: 4px 0 8px;
  }
}

@media (max-height: 800px) and (max-width: 900px) {
  .strip-art {
    height: 150px;
  }

  .zone-block.a {
    height: 84px;
  }

  .zone-block.b {
    height: 52px;
  }

  .zone-label.a {
    bottom: 96px;
  }

  .zone-label.b {
    bottom: 64px;
  }
}
