/* beredskaQet — Regnbue-hjælp (2026-10-20, DC)
   Flydende hjælpeknap + panel. Selvstændig, ingen afhængigheder.
   Virker på alle sider i /nonono/ (også React-portalen). */

#bq-help-btn,
#bq-help-panel,
#bq-help-bubble {
  --bq-r1: #ff2d75;
  --bq-r2: #ff9d00;
  --bq-r3: #3ddc84;
  --bq-r4: #22c1ff;
  --bq-r5: #8b5cf6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

#bq-help-btn *,
#bq-help-panel *,
#bq-help-bubble * { box-sizing: border-box; }

/* ───────── knap ───────── */
#bq-help-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2147483000;
  background: radial-gradient(circle at 30% 25%, #1b2030, #0b0d12 70%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 10px 34px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 0 26px rgba(139, 92, 246, .28);
  transition: transform .18s ease, box-shadow .25s ease;
}

#bq-help-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--bq-r1), var(--bq-r2), var(--bq-r3), var(--bq-r4), var(--bq-r5), var(--bq-r1));
  filter: blur(7px);
  opacity: .85;
  z-index: -1;
  animation: bq-spin 7s linear infinite;
}

#bq-help-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--bq-r1), var(--bq-r2), var(--bq-r3), var(--bq-r4), var(--bq-r5), var(--bq-r1));
  opacity: .18;
  z-index: -1;
  animation: bq-spin 7s linear infinite;
}

#bq-help-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .16) inset,
    0 0 34px rgba(34, 193, 255, .4);
}

#bq-help-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#bq-help-btn svg { width: 26px; height: 26px; display: block; }

#bq-help-btn .bq-q {
  position: absolute;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, #cfd6e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(255, 255, 255, .35);
}

/* ───────── første-gangs boble ───────── */
#bq-help-bubble {
  position: fixed;
  right: 94px;
  bottom: 30px;
  z-index: 2147483000;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 14, 19, .95);
  color: #eef1f7;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 45, 117, .25);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

#bq-help-bubble.bq-vis {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  cursor: pointer;
}

#bq-help-bubble::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(100deg,
    var(--bq-r1), var(--bq-r2), var(--bq-r3), var(--bq-r4), var(--bq-r5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ───────── panel ───────── */
#bq-help-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: min(410px, calc(100vw - 28px));
  max-height: min(74vh, 660px);
  z-index: 2147483000;
  border-radius: 20px;
  background: rgba(11, 13, 18, .94);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .7),
    0 0 60px rgba(139, 92, 246, .16),
    0 0 0 1px rgba(255, 255, 255, .07) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  color: #e9ecf3;
}

#bq-help-panel.bq-oejeblik { transition: none; }

#bq-help-panel.bq-aaben {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#bq-help-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg,
    var(--bq-r1), var(--bq-r2), var(--bq-r3), var(--bq-r4), var(--bq-r5), var(--bq-r1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .95;
}

#bq-help-panel::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(34, 193, 255, .16), transparent 70%);
  pointer-events: none;
}

.bq-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px 12px;
}

.bq-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 8% 0%, rgba(255, 45, 117, .14), transparent 62%),
    radial-gradient(120% 120% at 92% 0%, rgba(34, 193, 255, .14), transparent 62%);
  pointer-events: none;
}

.bq-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  background: linear-gradient(90deg,
    var(--bq-r1), var(--bq-r2), var(--bq-r3), var(--bq-r4), var(--bq-r5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bq-head p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #9aa3b2;
}

.bq-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #cfd6e6;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease, color .15s ease;
}

.bq-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.bq-chips {
  display: flex;
  gap: 7px;
  padding: 0 18px 12px;
  flex-wrap: wrap;
}

.bq-chip {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  color: #aab2c0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.bq-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .28); }

.bq-chip.bq-aktiv {
  color: #0b0d12;
  border-color: transparent;
  background: linear-gradient(100deg,
    var(--bq-r1), var(--bq-r2), var(--bq-r3), var(--bq-r4), var(--bq-r5));
}

.bq-body {
  position: relative;
  padding: 2px 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.bq-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 18, .92));
  pointer-events: none;
}

.bq-body::-webkit-scrollbar { width: 8px; }
.bq-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: 99px;
}

.bq-lead {
  font-size: 13.5px;
  line-height: 1.55;
  color: #c9d0dc;
  margin: 0 0 14px;
}

.bq-term {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.bq-term:first-of-type { border-top: 0; }

.bq-term b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}

.bq-term b i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  background: var(--bq-r4);
  box-shadow: 0 0 10px currentColor;
}

/* ── Kort-fanen (2026-10-20) ───────────────────────────────────────────── */
.bq-kort-liste {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.bq-kort-punkt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.bq-kort-punkt:last-child { border-bottom: 0; }
.bq-kort-prik {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  margin-top: 5px;
  box-shadow: 0 0 10px currentColor;
}
.bq-kort-punkt b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.bq-kort-regel {
  display: block;
  font-size: 12px;
  color: #9aa0ab;
  line-height: 1.4;
}
.bq-kort-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd236;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 210, 54, .35);
  padding-bottom: 1px;
}
.bq-kort-link:hover { color: #fff; border-color: #fff; }

.bq-term:nth-of-type(5n+2) b i { background: var(--bq-r1); }
.bq-term:nth-of-type(5n+3) b i { background: var(--bq-r2); }
.bq-term:nth-of-type(5n+4) b i { background: var(--bq-r3); }
.bq-term:nth-of-type(5n+5) b i { background: var(--bq-r5); }

.bq-term span {
  font-size: 12.8px;
  line-height: 1.5;
  color: #aab2c0;
}

.bq-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.bq-tip:first-of-type { border-top: 0; }

.bq-tip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  margin-top: 7px;
  background: var(--bq-r4);
  box-shadow: 0 0 10px currentColor;
}

.bq-tip:nth-of-type(3n+2) i { background: var(--bq-r1); }
.bq-tip:nth-of-type(3n+3) i { background: var(--bq-r3); }

.bq-tip span {
  font-size: 13px;
  line-height: 1.55;
  color: #c2c9d6;
}

.bq-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.bq-step:first-of-type { border-top: 0; }

.bq-num {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0b0d12;
  background: linear-gradient(140deg, var(--bq-r3), var(--bq-r4));
  box-shadow: 0 0 18px rgba(61, 220, 132, .35);
}

.bq-step:nth-of-type(2) .bq-num { background: linear-gradient(140deg, var(--bq-r2), var(--bq-r1)); box-shadow: 0 0 18px rgba(255, 157, 0, .32); }
.bq-step:nth-of-type(3) .bq-num { background: linear-gradient(140deg, var(--bq-r5), var(--bq-r4)); box-shadow: 0 0 18px rgba(139, 92, 246, .35); }

.bq-step div { font-size: 13px; line-height: 1.5; color: #c9d0dc; }
.bq-step strong { color: #fff; display: block; margin-bottom: 2px; font-size: 13px; }

.bq-kode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  padding: 2px 6px;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  display: inline-block;
  line-height: 1.45;
}

.bq-fod {
  padding: 11px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px;
  color: #7c8595;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bq-fod kbd {
  font-family: inherit;
  font-size: 10.5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 5px;
  color: #cfd6e6;
}

/* ───────── animationer ───────── */
@keyframes bq-spin { to { transform: rotate(360deg); } }

@keyframes bq-puls {
  0%, 100% { box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 22px rgba(139, 92, 246, .28); }
  50% { box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 34px rgba(34, 193, 255, .45); }
}

#bq-help-btn { animation: bq-puls 3.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  #bq-help-btn,
  #bq-help-btn::before,
  #bq-help-btn::after { animation: none; }
  #bq-help-panel, #bq-help-bubble { transition: none; }
}

@media (max-width: 520px) {
  #bq-help-btn { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  #bq-help-panel { right: 14px; left: 14px; width: auto; bottom: 82px; max-height: 76vh; }
  #bq-help-bubble { right: 84px; bottom: 24px; font-size: 12px; }
  .bq-term { grid-template-columns: 96px 1fr; gap: 10px; }
}
