/* Header tools: tip pill, share, help, and the help sheet. Loaded by the arcade
   menu and the doc pages next to shared/hub-tools.js. */
.hub-tools {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
}

.hub-share,
.hub-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  background: #000;
  color: var(--green-bright);
  font: inherit;
  font-weight: 800;
  line-height: 1;
}

.hub-help { font-size: 1.15rem; }

.hub-share svg { display: block; }

.hub-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.hub-card {
  width: min(22rem, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  position: relative;
  text-align: center;
}

.hub-x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-bright);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
}

.hub-card h2 { margin: 0.4rem 0 0.45rem; }

.hub-note {
  margin: 0 0 0.7rem;
  color: var(--ink-bright);
  font-weight: 700;
}

.hub-copied {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--green-bright);
  border-radius: 999px;
  background: #000;
  color: var(--ink-bright);
  font-weight: 750;
}

.hub-tools .tip-slot { margin: 0; }
