/* PROXIMA // notifications and the TO DO pill (bottom centre, never blocking) */
.px-notes {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  z-index: 60;
  display: grid;
  gap: 6px;
  pointer-events: none;
}
.px-notes-stack {
  display: grid;
  gap: 5px;
}
.px-note,
.px-todo {
  pointer-events: auto;
}
.px-note {
  --k: hsl(calc(var(--th-h) + 0.7) calc(70% * var(--th-s)) calc(62% + var(--th-l)));
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 8px 6px 10px;
  background: #0d1110ee;
  border: 1px solid #2f3633;
  border-left: 3px solid var(--k);
  box-shadow: 0 6px 22px #0007;
  backdrop-filter: blur(6px);
  font-size: 12px;
  line-height: 1.35;
  color: #dfe6e2;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.px-note.in {
  opacity: 1;
  transform: none;
}
.px-note.out {
  opacity: 0;
  transform: translateY(6px);
}
.px-note.k-success {
  --k: #6fcf8c;
}
.px-note.k-error {
  --k: #e56a52;
}
.px-note.k-choice {
  --k: #e8a24f;
}
.px-note.k-levelup {
  --k: #ffd25a;
}
.px-note.k-reward {
  --k: #ffd25a;
}
.px-note-ico {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #0d1110;
  background: var(--k);
}
.px-note-text {
  flex: 1;
}
.px-note-go {
  flex: none;
  background: none;
  border: 1px solid var(--k);
  color: var(--k);
  font: 700 10px var(--head);
  letter-spacing: 0.08em;
  padding: 3px 8px;
  cursor: pointer;
}
.px-note-go:hover {
  background: color-mix(in srgb, var(--k) 18%, transparent);
}
.px-note-x {
  flex: none;
  background: none;
  border: none;
  color: #7d8783;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
}
.px-note-x:hover {
  color: #dfe6e2;
}

/* TO DO pill */
.px-todo-slot {
  display: flex;
  justify-content: center;
}
.px-todo {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
}
.px-todo-pill {
  background: #0d1110e6;
  border: 1px solid #e8a24f88;
  color: #e8a24f;
  font: 700 10px var(--head);
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px #0006;
}
.px-todo-pill:hover,
.px-todo.open .px-todo-pill {
  background: #e8a24f22;
}
.px-todo-list {
  order: -1;
  width: 100%;
  display: grid;
  gap: 3px;
  background: #0d1110f2;
  border: 1px solid #2f3633;
  padding: 6px;
  box-shadow: 0 8px 26px #0008;
  max-height: 40vh;
  overflow: auto;
}
.px-todo-row {
  --k: #e8a24f;
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #dfe6e2;
  padding: 4px 4px 4px 6px;
  border-left: 2px solid var(--k);
}
.px-todo-row.k-levelup,
.px-todo-row.k-reward {
  --k: #ffd25a;
}
.px-todo-row.k-info {
  --k: #71bad6;
}
.px-todo-row > span:first-child {
  color: var(--k);
  font-weight: 700;
}
.px-todo-row button {
  background: none;
  border: 1px solid var(--k);
  color: var(--k);
  font: 700 9px var(--head);
  letter-spacing: 0.08em;
  padding: 3px 7px;
  cursor: pointer;
}
/* keep clear of the sound bar in the corner on small screens */
@media (max-width: 850px) {
  .px-notes {
    bottom: 58px;
  }
}

/* (?) help buttons and their popover */
.px-help {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  opacity: 0.55;
  font: 700 10px/1 var(--head);
  letter-spacing: 0;
  vertical-align: middle;
  cursor: help;
  flex: none;
}
.px-help:hover,
.px-help:focus-visible {
  opacity: 1;
}
.topbar h1 .px-help {
  width: 18px;
  height: 18px;
  font-size: 11px;
}
.px-help-pop {
  position: absolute;
  z-index: 70;
  width: min(340px, calc(100vw - 20px));
  background: #0d1110f5;
  border: 1px solid #2f3633;
  border-top: 2px solid hsl(calc(var(--th-h) + 0.7) calc(70% * var(--th-s)) calc(62% + var(--th-l)));
  box-shadow: 0 10px 30px #000a;
  padding: 10px 12px 12px;
  color: #dfe6e2;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.px-help-pop.in {
  opacity: 1;
  transform: none;
}
.px-help-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.px-help-head b {
  font: 700 12px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(calc(var(--th-h) + 0.7) calc(70% * var(--th-s)) calc(66% + var(--th-l)));
}
.px-help-head button {
  background: none;
  border: none;
  color: #7d8783;
  cursor: pointer;
}
.px-help-pop p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}
