/* Visor — cockpit viewport styles
   Layers on top of /css/site.css for fonts, color vars, and nav structure. */

/* Defensive reset: ensure the `hidden` attribute actually hides on elements
   that define their own `display` in author CSS. Without this, our author
   rules (e.g. `.visor-menu { display: flex }`) beat the UA stylesheet's
   `[hidden] { display: none }` at equal specificity — so setting `.hidden = true`
   from JS would silently fail. Idiomatic CSS-reset pattern. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body.visor-body {
  background: oklch(0.06 0.005 0);
  color: oklch(0.92 0.01 200);
}

/* The scene canvas fills the viewport; everything else overlays on top */
#visor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  touch-action: none;
}

.visor-main {
  position: relative;
  height: 100vh;
}

/* Nav overrides: fixed overlay, fades under visor.is-dimmed in phase 4.
   z-index well above the canvas so the cockpit can never visually cover
   the nav under any stacking-context quirk. */
.visor-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: opacity 0.4s ease;
}

.visor-nav.is-dimmed {
  opacity: 0.08;
  pointer-events: none;
}

.visor-nav.is-dimmed:hover {
  opacity: 1;
  pointer-events: auto;
}

/* Vignette — pure-CSS edge darkening for cockpit depth.
   Sits above the canvas (z=1) but below the HUD/status (z=5). Static; no
   transitions to honor under reduced-motion. */
.visor-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(ellipse 110% 80% at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

/* HUD — subtle attribution bottom-left */
.visor-hud {
  position: fixed;
  bottom: 1.25rem;
  left: 1.5rem;
  z-index: 5;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: oklch(0.75 0.15 200 / 0.55);
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.visor-hud-logo {
  color: oklch(0.85 0.02 200 / 0.7);
  font-weight: 700;
}

.visor-hud-sep {
  opacity: 0.4;
  margin: 0 0.6ch;
}

.visor-hud-status {
  color: oklch(0.85 0.16 85 / 0.7);
}

/* Status line — bottom-right, loading state + errors */
.visor-status {
  position: fixed;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 5;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  color: oklch(0.75 0.15 200 / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: opacity 0.5s ease;
  user-select: none;
}

.visor-status.is-error {
  color: oklch(0.70 0.18 330 / 0.8);
}

.visor-status.is-error .visor-status-label::before {
  content: "⚠ ";
}

/* Tooltip (phase 3) */
.visor-tooltip {
  position: fixed;
  z-index: 65;
  pointer-events: none;
  padding: 0.5rem 0.75rem;
  background: oklch(0.08 0.005 0 / 0.92);
  border: 1px solid oklch(0.75 0.15 200 / 0.3);
  border-radius: 0.25rem;
  color: oklch(0.92 0.01 200);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  max-width: 20rem;
  transition: opacity 0.15s ease;
}

.visor-tooltip-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.visor-tooltip-meta {
  display: block;
  color: oklch(0.7 0.01 200);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Panel scrim — dims scene under the panel */
.visor-scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: oklch(0.04 0.005 0 / 0.35);
  z-index: 70;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.visor-scrim.is-visible {
  opacity: 1;
}

/* Detail panel — right-side slide-in (desktop) */
.visor-panel {
  position: fixed;
  /* Start below the nav so the two don't overlap visually — the nav's
     translucent bg + backdrop-blur was bleeding through the top of the
     panel and obscuring the close button. Nav stays interactive, panel
     gets a clean top edge. */
  top: 4rem;
  right: 0;
  width: 30vw;
  min-width: 360px;
  max-width: 480px;
  height: calc(100vh - 4rem);
  z-index: 75;
  background: oklch(0.08 0.005 0 / 0.95);
  border-left: 1px solid oklch(0.20 0.01 0);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.visor-panel[aria-hidden="false"] {
  transform: translateX(0);
}

.visor-panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid oklch(0.20 0.01 0);
  color: oklch(0.8 0.01 200);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.visor-panel-close:hover {
  border-color: oklch(0.75 0.15 200);
  color: oklch(0.75 0.15 200);
}

.visor-panel-body {
  padding: 3rem 1.75rem 2rem;
}

.visor-panel-source {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-bottom: 0.75rem;
}

.visor-panel-source.is-color-proof {
  color: oklch(0.85 0.16 85);
}

.visor-panel-source.is-hologlass {
  color: oklch(0.75 0.15 200);
}

.visor-panel-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: oklch(0.92 0.01 200);
  margin: 0 0 1.5rem;
  line-height: 1.2;
  word-break: break-word;
}

.visor-panel-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: oklch(0.85 0.01 200);
}

.visor-field {
  margin-bottom: 1rem;
}

.visor-field-label {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.65 0.01 200);
  margin-bottom: 0.25rem;
}

.visor-field-value {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8125rem;
  color: oklch(0.9 0.01 200);
  word-break: break-all;
  background: oklch(0.12 0.005 0);
  padding: 0.5rem 0.625rem;
  border-radius: 0.25rem;
  border: 1px solid oklch(0.18 0.01 0);
}

.visor-field-value.is-command {
  white-space: pre-wrap;
  word-break: normal;
}

.visor-field-value a {
  color: oklch(0.75 0.15 200);
  text-decoration: none;
  border-bottom: 1px dotted oklch(0.75 0.15 200 / 0.5);
}

.visor-field-value a:hover {
  color: oklch(0.85 0.15 200);
  border-bottom-style: solid;
}

.visor-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.visor-badge.is-authorized {
  background: oklch(0.75 0.15 200 / 0.15);
  color: oklch(0.80 0.15 200);
  border: 1px solid oklch(0.75 0.15 200 / 0.5);
}

.visor-badge.is-denied {
  background: oklch(0.70 0.18 330 / 0.15);
  color: oklch(0.78 0.18 330);
  border: 1px solid oklch(0.70 0.18 330 / 0.5);
}

/* --- Provenance sidebar (RIOM selection) --------------------------------- */

.visor-panel-skeleton {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8125rem;
  color: oklch(0.65 0.01 200);
  padding: 1.25rem 0;
  letter-spacing: 0.05em;
}

.visor-panel-identity {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0 1.125rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid oklch(0.18 0.01 0);
}

.visor-identity-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 14px currentColor, inset 0 0 4px oklch(0 0 0 / 0.3);
  border: 1px solid oklch(1 0 0 / 0.15);
}

.visor-identity-text {
  flex: 1;
  min-width: 0;
}

.visor-identity-token {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: oklch(0.95 0.01 200);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.visor-identity-id {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  color: oklch(0.6 0.01 200);
  margin-top: 0.25rem;
}

.visor-commitment {
  background: oklch(0.10 0.005 0);
  border: 1px solid oklch(0.20 0.01 0);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
}

.visor-commitment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.visor-commitment-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.72 0.01 200);
}

.visor-commitment-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.25rem 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8125rem;
}

.visor-commitment-key {
  color: oklch(0.6 0.01 200);
  font-size: 0.75rem;
}

.visor-commitment-value {
  color: oklch(0.92 0.01 200);
  word-break: break-all;
}

.visor-commitment-value.is-hash {
  font-size: 0.75rem;
  line-height: 1.4;
  color: oklch(0.85 0.08 200);
}

.visor-chain-timeline {
  margin-bottom: 1rem;
}

.visor-chain-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.65 0.01 200);
  margin-bottom: 0.75rem;
}

.visor-chain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.visor-chain-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom,
    oklch(0.75 0.15 200 / 0.5),
    oklch(0.75 0.15 200 / 0.15));
}

.visor-chain-step {
  position: relative;
  display: flex;
  gap: 0.875rem;
  padding: 0.625rem 0;
  padding-left: 0.25rem;
}

.visor-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: oklch(0.75 0.15 200);
  box-shadow: 0 0 10px oklch(0.75 0.15 200 / 0.6);
  flex-shrink: 0;
  margin-top: 0.375rem;
  position: relative;
  z-index: 1;
}

.visor-chain-step.is-self .visor-step-dot {
  background: oklch(0.90 0.17 85);
  box-shadow: 0 0 14px oklch(0.90 0.17 85 / 0.7);
  transform: scale(1.2);
}

.visor-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.visor-step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
  align-self: stretch;
}

.visor-step-seq {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: oklch(0.7 0.01 200);
  font-weight: 500;
}

.visor-step-rule {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8125rem;
  color: oklch(0.88 0.01 200);
  word-break: break-all;
  margin-bottom: 0.25rem;
}

.visor-step-tx {
  align-self: flex-end;
  margin-top: 0.125rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  color: oklch(0.75 0.15 200);
  text-decoration: none;
  border-bottom: 1px dotted oklch(0.75 0.15 200 / 0.4);
}

.visor-step-tx:hover {
  color: oklch(0.85 0.15 200);
  border-bottom-style: solid;
}

.visor-raw-hashes {
  margin-top: 1.25rem;
  border-top: 1px solid oklch(0.18 0.01 0);
  padding-top: 1rem;
}

.visor-raw-hashes summary {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.6 0.01 200);
  cursor: pointer;
  padding: 0.25rem 0;
}

.visor-raw-hashes summary:hover {
  color: oklch(0.8 0.01 200);
}

.visor-raw-hashes-body {
  padding-top: 0.75rem;
}

/* Provenance-specific badge variants */
.visor-badge.is-contract {
  background: oklch(0.75 0.15 200 / 0.15);
  color: oklch(0.82 0.15 200);
  border: 1px solid oklch(0.75 0.15 200 / 0.5);
}

.visor-badge.is-registry {
  background: oklch(0.70 0.18 330 / 0.15);
  color: oklch(0.80 0.18 330);
  border: 1px solid oklch(0.70 0.18 330 / 0.5);
}

.visor-badge.is-domain-light {
  background: oklch(0.85 0.16 85 / 0.15);
  color: oklch(0.88 0.16 85);
  border: 1px solid oklch(0.85 0.16 85 / 0.5);
}

.visor-badge.is-domain-entity,
.visor-badge.is-domain-ontology {
  background: oklch(0.75 0.01 200 / 0.12);
  color: oklch(0.85 0.01 200);
  border: 1px solid oklch(0.5 0.01 200 / 0.5);
}

.visor-badge.is-domain-paint,
.visor-badge.is-domain-cmyk {
  background: oklch(0.70 0.18 330 / 0.12);
  color: oklch(0.80 0.18 330);
  border: 1px solid oklch(0.70 0.18 330 / 0.5);
}

.visor-badge.is-muted {
  background: oklch(0.15 0.005 0 / 0.5);
  color: oklch(0.62 0.01 200);
  border: 1px solid oklch(0.25 0.01 0);
}

/* Mobile panel: bottom sheet instead of side drawer */
@media (max-width: 767px) {
  .visor-panel {
    top: auto;
    bottom: 0;
    width: 100vw;
    min-width: 0;
    max-width: none;
    height: 65vh;
    transform: translateY(100%);
    border-left: none;
    border-top: 1px solid oklch(0.20 0.01 0);
    border-radius: 1rem 1rem 0 0;
  }

  .visor-panel[aria-hidden="false"] {
    transform: translateY(0);
  }

  .visor-hud {
    font-size: 0.625rem;
    bottom: 1rem;
    left: 1rem;
  }

  .visor-status {
    font-size: 0.625rem;
    bottom: 1rem;
    right: 1rem;
  }

  /* On touch, tooltip is noisy — hide it (panel still works on tap) */
  .visor-tooltip {
    display: none !important;
  }
}

/* ======================================================================
   Visor terminal menu — spawns on load, nav tree to pick a dataset.
   Glass card with cyan neon border, Roboto Mono everywhere, spawn with
   a subtle scale+blur fade in that mimics a holographic terminal booting.
   ====================================================================== */

.visor-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: 'Roboto Mono', monospace;
}
.visor-menu:not([hidden]) { pointer-events: auto; }

/* Glass-card recipe shared by the landing hero and the in-session terminal
   menu screens. Any element with .visor-card (or the legacy .visor-menu-screen)
   gets the frosted neon-border aesthetic + spawn animation. */
.visor-menu-screen,
.visor-card {
  position: relative;
  background: oklch(0.08 0.005 0 / 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid oklch(0.75 0.15 200 / 0.28);
  border-radius: 0.75rem;
  padding: 2.75rem 3rem 2.25rem;
  min-width: 420px;
  max-width: 560px;
  box-shadow:
    0 0 48px oklch(0.75 0.15 200 / 0.18),
    inset 0 0 24px oklch(0.75 0.15 200 / 0.06);
  text-align: center;
  animation: visor-menu-spawn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.0) both;
}
.visor-menu-screen::before,
.visor-card::before {
  /* Corner ticks — cockpit-display accent. Pure decoration. */
  content: '';
  position: absolute;
  top: 0.5rem; left: 0.5rem; right: 0.5rem; bottom: 0.5rem;
  border: 1px solid oklch(0.75 0.15 200 / 0.12);
  border-radius: 0.5rem;
  pointer-events: none;
}

@keyframes visor-menu-spawn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(6px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.visor-menu-tag {
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  color: oklch(0.80 0.16 200 / 0.9);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.visor-menu-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: oklch(0.96 0.01 200);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.visor-menu-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: oklch(0.70 0.01 200 / 0.75);
  text-transform: uppercase;
  margin: 0 0 2rem;
}
.visor-menu-foot {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: oklch(0.6 0.01 200 / 0.5);
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}

.visor-menu-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.visor-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: oklch(0.10 0.005 0 / 0.6);
  border: 1px solid oklch(0.75 0.15 200 / 0.45);
  border-radius: 0.375rem;
  color: oklch(0.92 0.01 200);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-transform: uppercase;
  text-align: left;
}
.visor-menu-btn.is-primary {
  background: oklch(0.12 0.03 200 / 0.7);
  border-color: oklch(0.80 0.18 200 / 0.7);
}
.visor-menu-btn:hover,
.visor-menu-btn:focus-visible {
  background: oklch(0.15 0.04 200 / 0.8);
  border-color: oklch(0.82 0.18 200);
  box-shadow: 0 0 20px oklch(0.75 0.15 200 / 0.32);
  color: oklch(0.98 0.01 200);
  outline: none;
}
.visor-menu-glyph {
  font-size: 0.7rem;
  color: oklch(0.75 0.15 200);
  flex-shrink: 0;
}
.visor-menu-label { flex: 1; }
.visor-menu-meta {
  font-size: 0.625rem;
  color: oklch(0.7 0.01 200 / 0.75);
  letter-spacing: 0.15em;
  min-width: 2ch;
  text-align: right;
}
.visor-menu-back {
  margin-top: 1.25rem;
  background: transparent;
  border: none;
  color: oklch(0.65 0.01 200 / 0.7);
  font-family: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
}
.visor-menu-back:hover,
.visor-menu-back:focus-visible { color: oklch(0.92 0.01 200); outline: none; }

/* Return-to-menu button: shown while a view is active. Sits top-left under
   the nav (which is also top-left). Styled to match the menu buttons but
   compact, so it feels part of the terminal chrome. */
.visor-return-btn {
  position: fixed;
  top: 4.75rem;
  left: 1.5rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: oklch(0.10 0.005 0 / 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid oklch(0.75 0.15 200 / 0.38);
  border-radius: 0.3rem;
  color: oklch(0.88 0.01 200);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.visor-return-btn:hover,
.visor-return-btn:focus-visible {
  background: oklch(0.14 0.03 200 / 0.85);
  border-color: oklch(0.82 0.18 200);
  color: oklch(0.98 0.01 200);
  box-shadow: 0 0 16px oklch(0.75 0.15 200 / 0.3);
  outline: none;
}
.visor-return-arrow { color: oklch(0.75 0.15 200); }

@media (max-width: 767px) {
  .visor-menu-screen,
  .visor-card {
    min-width: 0;
    width: calc(100vw - 2.5rem);
    padding: 2rem 1.5rem 1.75rem;
  }
  .visor-menu-title { font-size: 1.9rem; }
  .visor-return-btn { top: 4.25rem; left: 1rem; font-size: 0.625rem; padding: 0.45rem 0.75rem; }
  .visor-exit-btn { top: 4.25rem; right: 1rem; font-size: 0.625rem; padding: 0.45rem 0.75rem; }
}

/* ======================================================================
   Landing + cockpit containers.
   The landing page is pure HTML/CSS — zero Three.js, no WebGL context. The
   cockpit container wraps all the canvas + overlay DOM and is hidden until
   the user clicks Start Session.
   ====================================================================== */

.visor-landing {
  position: fixed;
  inset: 0;
  z-index: 1;                    /* above page bg, well below nav (z=50) */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  font-family: 'Roboto Mono', monospace;
}
.visor-landing[hidden] { display: none; }

/* The cockpit is just a logical grouping — children are all position:fixed
   and carry their own z-indexes. The container itself needs no layout. */
.visor-cockpit[hidden] { display: none; }

/* EXIT button — mirrors .visor-return-btn but top-right with a muted red
   accent. Cyan stays the "action" color; red signals "leave". */
.visor-exit-btn {
  position: fixed;
  top: 4.75rem;
  right: 1.5rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: oklch(0.10 0.005 0 / 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid oklch(0.65 0.18 25 / 0.4);
  border-radius: 0.3rem;
  color: oklch(0.88 0.04 25);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.visor-exit-btn:hover,
.visor-exit-btn:focus-visible {
  background: oklch(0.14 0.04 25 / 0.85);
  border-color: oklch(0.72 0.2 25);
  color: oklch(0.96 0.06 25);
  box-shadow: 0 0 16px oklch(0.65 0.18 25 / 0.3);
  outline: none;
}
.visor-exit-x { color: oklch(0.72 0.2 25); font-size: 1rem; line-height: 1; }

/* Reduced motion: honor the contract */
@media (prefers-reduced-motion: reduce) {
  .visor-panel,
  .visor-scrim,
  .visor-tooltip,
  .visor-status,
  .visor-nav,
  .visor-return-btn,
  .visor-menu-btn,
  .visor-menu-back {
    transition: none;
  }

  .visor-nav.is-dimmed {
    opacity: 1;
    pointer-events: auto;
  }

  .visor-menu-screen,
  .visor-card {
    animation: none;
  }
  .visor-exit-btn { transition: none; }
}
