#mobile-menu {
  position: absolute;
  display: flex;
  gap: 6px;
  right: 25px;
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 5px 10px;
  background: #161616ed;
  border: 1px solid #888;
  border-radius: 22px;
  z-index: 2;
}
#mobile-menu button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  width: 65px;
  height: 53px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: #eee;
  font-size: 11px;
}
#mobile-menu span {
  display: grid;
  place-items: center;
  height: 24px;
  font-size: 23px;
}
#mobile-menu svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#quick-gather {
  background: #eee !important;
  color: #141414 !important;
}
.chapter {
  display: none;
}
.bottom-bar {
  pointer-events: none;
  bottom: 30px;
}
#reset,
.controls-hint {
  display: none;
}
#story-line {
  position: absolute;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 32px));
  padding: 12px 16px;
  border-left: 2px solid #87d7ff;
  background: #141414de;
  color: #eee;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
#story-line.visible {
  opacity: 1;
}
#station-dialog p,
#journal-dialog p {
  color: #c8c8c8;
  margin: 10px 0;
}
#station-dialog input {
  width: 100%;
  padding: 12px;
  border: 1px solid #888;
  background: #333;
  color: #fff;
  font: inherit;
  margin-top: 10px;
}
#journal-dialog h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  margin: 24px 0 10px;
}
#journal-dialog progress {
  width: 100%;
  height: 12px;
  accent-color: #87d7ff;
}
.journal-entry {
  border-top: 1px solid #555;
  padding-top: 12px;
}
.mobile-sheet {
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
}
@media (max-width: 760px) {
  #mobile-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  #mobile-menu button {
    width: 60px;
  }
  #story-line {
    bottom: 145px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #story-line {
    transition: none;
  }
}

#show-journal {
  position: relative;
}
#level-badge {
  position: absolute;
  right: 9px;
  top: 3px;
  font-size: 10px;
  color: #87d7ff;
}
