.question-navigation {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.question-navigation button {
  flex: 1;
}

.live-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #8b1712;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 3px 10px #0008;
}

.live-label { font-weight: 900; }
.live-jump { min-height: 40px; padding: 0.45rem 0.7rem; }
#progress { top: 3.9rem; }

.question-navigator {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.question-marker {
  position: relative;
  min-height: 44px;
  padding: 0.35rem;
  background: #383c40;
  color: #fff;
  border: 2px solid #5b6065;
  font-size: 0.85rem;
}

.question-marker.answered::after { content: "✓"; margin-left: 0.2rem; color: #82e391; }
.question-marker.live { border-color: #ff655c; box-shadow: inset 0 0 0 1px #ff655c; }
.question-marker.viewer { background: var(--yellow); color: #171717; border-color: #fff; }
.question-marker.viewer.live { background: #ff655c; font-size: 0.68rem; }

@media (max-width: 500px) {
  body {
    min-height: 100dvh;
  }

  main.playing {
    max-width: none;
    padding-block: 0;
  }

  main.playing > header {
    display: none;
  }

  main.playing #game {
    min-height: calc(100vh - 17px);
    min-height: calc(100dvh - 17px);
  }

  .question-navigation {
    gap: 0.5rem;
  }

  .question-navigation button {
    padding-inline: 0.5rem;
  }

  .live-bar { margin-inline: -0.6rem; border-radius: 0; }
}
