.hacknix-identity {
  --hx-size: 3rem;
  --hx-accent: #ffd21a;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .72rem;
  color: #f4f5f6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hx-badge {
  position: relative;
  display: block;
  width: var(--hx-size);
  height: var(--hx-size);
  flex: 0 0 var(--hx-size);
  overflow: hidden;
  border-radius: 50%;
  background: #030405;
}

.hx-layer,
.hx-celestial {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.hx-layer {
  inset: 0;
  width: 100%;
  height: 100%;
}

.hx-celestial {
  z-index: 2;
  width: 18%;
  height: 18%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.hx-sky-a { z-index: 0; }
.hx-sky-b { z-index: 1; }
.hx-stars { z-index: 2; opacity: 0; }
.hx-sun, .hx-moon { opacity: 0; }
.hx-back-a { z-index: 3; }
.hx-back-b { z-index: 4; }
.hx-badger { z-index: 5; }
.hx-front-a { z-index: 6; }
.hx-front-b { z-index: 7; }
.hx-event { z-index: 8; opacity: 0; }
.hx-memorial { z-index: 9; opacity: 0; }

.hx-sky-b,
.hx-back-b,
.hx-front-b,
.hx-event,
.hx-memorial,
.hx-stars,
.hx-celestial {
  transition: opacity 900ms ease;
}

.hx-wordmark { display: inline-flex; align-items: baseline; }
.hacknix-identity .hx-prompt { color: #57e322; }
.hacknix-identity .hx-hack { color: #f4f5f6; }
.hacknix-identity .hx-nix { color: var(--hx-accent); transition: color 900ms ease; }
.hacknix-identity .hx-net { color: #74777d; }
.hacknix-identity.hx-memorial-active .hx-prompt { color: #aeb0b2; }

.hx-fallback-badge { width: var(--hx-size); height: var(--hx-size); border-radius: 50%; }

.hacknix-identity[data-mode="badge"] { --hx-size: 100%; display: block; width: 100%; aspect-ratio: 1; }
.hacknix-identity[data-mode="badge"] .hx-wordmark { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hacknix-identity *, .hx-nix { transition: none !important; }
}
