/* ====================================================================
   MOONGIRL POPOVER — hover-lore card
   ====================================================================
   Triggered on hover of [data-moongirl] with a 280ms dwell so accidental
   mouse passes don't fire it. Click stays unhooked (the button does
   whatever it normally does — e.g. open the theme picker).
   ==================================================================== */

.mg-pop {
  position: fixed;
  z-index: 260;        /* above search(240) + settings(230) + contact(220) */
  width: 360px;
  background: var(--io-surface-raised);
  border: 1px solid var(--io-accent-dim);
  border-radius: var(--io-radius-xs);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.6),
    0 0 0 1px var(--io-accent-dim),
    0 0 48px var(--io-accent-glow);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}
.mg-pop.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mg-pop::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--io-accent), transparent);
}

/* bracket corners */
.mg-pop .br {
  position: absolute; width: 14px; height: 14px;
  pointer-events: none;
}
.mg-pop .br.tl { top: 8px; left: 8px;   border-top: 1px solid var(--io-accent); border-left:  1px solid var(--io-accent); }
.mg-pop .br.tr { top: 8px; right: 8px;  border-top: 1px solid var(--io-accent); border-right: 1px solid var(--io-accent); }
.mg-pop .br.bl { bottom: 8px; left: 8px;  border-bottom: 1px solid var(--io-accent); border-left:  1px solid var(--io-accent); }
.mg-pop .br.br { bottom: 8px; right: 8px; border-bottom: 1px solid var(--io-accent); border-right: 1px solid var(--io-accent); }

.mg-pop .head { padding: 20px 22px 8px; }

.mg-pop .kicker {
  font-family: var(--io-font-pixel);
  font-size: var(--io-fs-micro);
  letter-spacing: 1.5px;
  color: var(--io-accent);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.mg-pop .kicker::before {
  content: ""; width: 16px; height: 1px; background: var(--io-accent);
}

.mg-pop .title {
  font-family: var(--style-font-bitcraft);
  /* No xxl token in the chassis — calc keeps it relative to --io-fs-xl
     instead of hardcoding 38px. */
  font-size: calc(var(--io-fs-xl) * 1.6);
  line-height: 1.0;
  color: var(--io-text-primary);
  margin: 8px 0 6px;
  background: linear-gradient(90deg, var(--io-text-primary) 0%, var(--io-accent-bright) 60%, var(--io-accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.mg-pop .by {
  font-family: var(--io-font-pixel);
  font-size: var(--io-fs-micro);
  letter-spacing: 1.5px;
  color: var(--io-text-tertiary);
  text-transform: uppercase;
}
.mg-pop .by .acc { color: var(--io-accent); }

.mg-pop .body {
  padding: 4px 22px 12px;
  font-family: var(--io-font-mono);
  font-size: var(--io-fs-sm);
  line-height: 1.6;
  color: var(--io-text-secondary);
}
.mg-pop .body p { margin: 0 0 12px; }
.mg-pop .body code {
  font-family: var(--io-font-mono);
  font-size: var(--io-fs-micro);
  color: var(--io-accent);
  background: var(--io-surface-overlay);
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-xs);
  padding: 0 5px;
}
.mg-pop .body em {
  color: var(--io-accent-bright);
  font-style: normal;
}

/* the "what she is for" pull-quote — Bitcraft */
.mg-pop .what-for {
  margin: 4px 22px 14px;
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--io-accent);
  font-family: var(--style-font-bitcraft);
  font-size: var(--io-fs-xl);
  line-height: 1.3;
  color: var(--io-text-primary);
}
.mg-pop .what-for .acc { color: var(--io-accent); }

.mg-pop .foot {
  border-top: 1px solid var(--io-border);
  padding: 10px 22px;
  background: var(--io-surface-base);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--io-font-pixel);
  font-size: var(--io-fs-micro);
  letter-spacing: 1.5px;
  color: var(--io-text-tertiary);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.mg-pop .foot .pill {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 8px;
  background: var(--io-accent-subtle);
  border: 1px solid var(--io-accent-dim);
  border-radius: var(--io-radius-xs);
  font-size: 9px;
  color: var(--io-accent);
}
.mg-pop .foot .sep { color: var(--io-text-disabled); }
