/* Review panel of the static demo (tools/demo/demo.js). Not used by the event build. */

.demo-panel,
.demo-pill {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 80;
  font-family: var(--font-body);
  color: var(--text);
  background: rgba(10, 8, 30, 0.88); /* no backdrop blur: it would be redrawn every frame over the spinning ring */
  border: 1px solid rgba(170, 180, 255, 0.22);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.demo-panel {
  width: min(320px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
}

/* only while the ring waits for a spin, and not when minimised */
body:not(.demo-idle) .demo-panel,
body.demo-min .demo-panel {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
}

.demo-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

body:not(.demo-min) .demo-pill,
body:not(.demo-idle) .demo-pill {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.dp-head b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 120%;
  font-size: 13px;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b), var(--neon-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dp-head span {
  color: var(--muted);
}

.dp-min {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(170, 180, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.dp-group {
  margin-bottom: 8px;
}

.dp-group p {
  margin: 0 0 5px;
  color: var(--muted);
  font-weight: 600;
}

.dp-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dp-seg button,
.dp-kv {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(170, 180, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dp-seg button:hover:not(:disabled),
.dp-kv:hover,
.dp-min:hover,
.demo-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dp-seg button.on {
  border-color: transparent;
  background: linear-gradient(100deg, #5b4bff, #b04cc0);
  color: #fff;
}

.dp-seg[data-group='out'] button.on {
  background: rgba(255, 70, 100, 0.92);
}

.dp-seg button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dp-kv {
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 7px;
}

.dp-tip {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.dp-tip kbd {
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid rgba(170, 180, 255, 0.3);
  font: inherit;
  font-size: 10.5px;
}

.dp-seg button:focus-visible,
.dp-kv:focus-visible,
.dp-min:focus-visible,
.demo-pill:focus-visible {
  outline: 2px solid var(--neon-a);
  outline-offset: 2px;
}

/* the demo has no accounts */
#logoutBtn {
  display: none !important;
}
