.badge {
  position: fixed;
  top: calc(52px + 0.9rem);
  right: max(1rem, calc((100vw - 1400px) / 2 + 1.5rem));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 32px;
  max-width: min(320px, calc(100vw - 2rem));
  padding: 0.35rem 0.75rem;
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(118, 185, 0, 0.22);
  background:
    radial-gradient(circle at top left, rgba(143, 212, 0, 0.14), transparent 45%),
    rgba(13, 19, 10, 0.9);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.badge:hover {
  border-color: rgba(143, 212, 0, 0.38);
  background:
    radial-gradient(circle at top left, rgba(143, 212, 0, 0.18), transparent 45%),
    rgba(17, 26, 12, 0.94);
}

.spinner {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.45);
  animation: pulse 1.4s ease-out infinite;
  flex-shrink: 0;
}

.text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.label {
  color: var(--color-primary-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail {
  min-width: 0;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes pulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.45);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(118, 185, 0, 0);
  }

  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(118, 185, 0, 0);
  }
}

@media (max-width: 1280px) {
  .badge {
    right: 1rem;
    max-width: min(240px, calc(100vw - 2rem));
  }

  .detail {
    display: none;
  }
}

@media (max-width: 768px) {
  .badge {
    display: none;
  }
}
