.global-journey-hub {
  position: fixed;
  z-index: 45;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  width: min(840px, calc(100% - 112px));
  padding: 8px 16px 7px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
  color: #edf5f4;
  background: rgba(8,22,29,.82);
  box-shadow: 0 10px 28px rgba(3,15,22,.25), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(12px) saturate(.85);
  transform: translateX(-50%);
  font-family: "Courier New", "Nimbus Mono PS", "Liberation Mono", ui-monospace, monospace;
}

.global-journey-hub::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: rgba(237,245,244,.3);
}

.global-journey-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: rgba(237,245,244,.66);
  background: transparent;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.global-journey-step b {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237,245,244,.52);
  border-radius: 50%;
  color: #edf5f4;
  background: #132a34;
  font-size: 9px;
  letter-spacing: .04em;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(8,22,29,.82);
}

.global-journey-step small {
  max-width: 100%;
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-overflow: ellipsis;
}

.global-journey-step.is-current b {
  color: #07131b;
  border-color: #ffc56f;
  background: #ffc56f;
}
.global-journey-step.is-current small { color: #ffc56f; }

.global-journey-step.is-complete b {
  color: #07131b;
  border-color: #d8c49c;
  background: #f0e6ce;
}
.global-journey-step.is-complete b::after {
  content: "✓";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border: 2px solid #132a34;
  border-radius: 50%;
  color: #132a34;
  background: #ffc56f;
  font-family: Arial, sans-serif;
  font-size: 8px;
  line-height: 1;
}
.global-journey-step.is-current.is-complete b {
  color: #07131b;
  border-color: #ffc56f;
  background: #ffc56f;
}

.global-journey-step.is-available {
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}
.global-journey-step.is-available:hover {
  color: #fff;
  transform: translateY(-1px);
}
.global-journey-step.is-available:focus-visible {
  outline: 3px solid rgba(255,197,111,.5);
  outline-offset: 3px;
}

.global-journey-step.is-locked {
  opacity: .34;
  cursor: not-allowed;
}
.global-journey-step.is-locked b { border-style: dashed; }

.global-journey-status {
  position: fixed;
  z-index: 46;
  top: max(78px, calc(env(safe-area-inset-top) + 68px));
  left: 50%;
  margin: 0;
  padding: 7px 10px;
  color: #fff;
  background: rgba(8,22,29,.88);
  font: 700 9px/1.3 "Courier New", monospace;
  text-align: center;
  transform: translateX(-50%);
}
.global-journey-status[hidden] { display: none; }

@media (max-width: 560px) {
  .global-journey-hub {
    top: max(7px, env(safe-area-inset-top));
    width: calc(100% - 12px);
    padding: 7px 3px 6px;
    border-radius: 11px;
  }
  .global-journey-hub::before {
    top: 21px;
    right: 10%;
    left: 10%;
  }
  .global-journey-step { gap: 4px; }
  .global-journey-step b {
    width: 28px;
    height: 28px;
    font-size: 8px;
  }
  .global-journey-step small {
    font-size: clamp(5px, 1.55vw, 7px);
    letter-spacing: 0;
  }
  .has-global-journey .sound-toggle {
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
