/* Consent terminal — Niiv1
   Sits above the fixed footer (z 10) and header (z 60), left corner so it never
   fights the right-hand radar HUD. Square corners and a hairline gold→cyan edge:
   the register of the site, not of a cookie dialog. */

.consent {
  position: fixed;
  left: 20px;
  bottom: 72px;
  z-index: 70;
  width: min(292px, calc(100vw - 40px));
  padding: 13px 14px 12px;
  background: rgba(8, 8, 8, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--border-h);
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.62);
  font-family: Inter, system-ui, sans-serif;
  color: var(--muted2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.consent.is-in {
  opacity: 1;
  transform: none;
}

.consent.is-gone {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Gold → cyan hairline along the top edge, with one sweep on entry. */
.consent-bar {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.8;
}

.consent-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-100%);
  animation: consent-sweep 1.5s ease 0.25s 1;
}

@keyframes consent-sweep {
  to { transform: translateX(100%); }
}

.consent-text {
  margin: 0 0 11px;
  font-size: 11.5px;
  line-height: 1.55;
}

.consent-actions {
  display: flex;
  gap: 7px;
}

.consent-btn {
  flex: 1;
  padding: 7px 8px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  background: transparent;
  border: 1px solid var(--border-h);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.consent-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

.consent-btn.is-primary {
  color: var(--accent);
  border-color: rgba(201, 168, 106, 0.4);
}

.consent-btn.is-primary:hover {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

.consent-btn:focus-visible {
  outline: 1px solid var(--accent2);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .consent {
    left: 10px;
    right: 10px;
    bottom: 84px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    transition: none;
    transform: none;
  }
  .consent-bar::after {
    animation: none;
  }
}
