.space-field {
  --sf-bg: #0a0c0b;
  --sf-paper: #f1f0ea;
  --sf-cyan: #b8ff4a;
  --sf-mint: #b8ff4a;
  --sf-violet: #b8ff4a;
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: var(--sf-paper);
  background: var(--sf-bg);
  border-right: 1px solid rgba(17, 19, 19, .28);
  isolation: isolate;
  font-family: var(--mono, "IBM Plex Mono", ui-monospace, monospace);
  container-type: inline-size;
}

.space-field::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 42%, rgba(184,255,74,.055), transparent 31%),
    linear-gradient(180deg, rgba(10,12,11,0) 63%, rgba(10,12,11,.5));
}

.space-field__canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

.space-field__topline {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
  color: rgba(241,240,234,.62);
  font: 650 9px/1.4 var(--mono, ui-monospace, monospace);
  letter-spacing: .095em;
  text-transform: uppercase;
}

.space-field__topline span:last-child { color: var(--sf-cyan); }

.space-field__card {
  position: absolute;
  z-index: 6;
  right: 20px;
  bottom: 20px;
  width: min(300px, calc(100% - 40px));
  min-height: 106px;
  display: grid;
  grid-template-columns: 78px 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 14px;
  padding: 11px;
  border: 1px solid rgba(241,240,234,.58);
  background: rgba(8,10,9,.91);
  color: var(--sf-paper);
  box-shadow: 0 20px 42px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  transition: opacity .18s ease, transform .25s ease;
  pointer-events: none;
}

.space-field__card[hidden] {
  display: grid;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
}

.space-field__card-image {
  grid-row: 1 / -1;
  width: 78px;
  height: 88px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.space-field__card-index,
.space-field__card-meta {
  color: rgba(241,240,234,.54);
  font: 600 8px/1.3 var(--mono, ui-monospace, monospace);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.space-field__card h3 {
  margin: 5px 0 0;
  font: 650 18px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: -.035em;
}

.space-field__card p {
  margin: 6px 0;
  color: rgba(241,240,234,.78);
  font: 500 10px/1.35 var(--mono, ui-monospace, monospace);
}

.space-field__legend {
  position: absolute;
  z-index: 4;
  left: 22px;
  bottom: 22px;
  max-width: 390px;
  color: rgba(241,240,234,.55);
  font: 600 8px/1.55 var(--mono, ui-monospace, monospace);
  letter-spacing: .055em;
  text-transform: uppercase;
  pointer-events: none;
}

.space-field__legend b { color: var(--sf-paper); font-weight: 600; }

.space-field__axis {
  position: absolute;
  z-index: 4;
  left: 7%;
  right: 7%;
  bottom: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: rgba(241,240,234,.42);
  font: 600 8px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.space-field__axis span:nth-child(2) { text-align:center; }
.space-field__axis span:last-child { text-align:right; }

.space-field__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@container (max-width: 560px) {
  .space-field { min-height: 620px; border-right: 0; }
  .space-field__topline { top: 16px; left: 16px; right: 16px; font-size: 7px; }
  .space-field__card { right: 14px; bottom: 52px; width: calc(100% - 28px); grid-template-columns: 68px 1fr; }
  .space-field__card-image { width: 68px; height: 78px; }
  .space-field__card h3 { font-size: 16px; }
  .space-field__axis { left:16px; right:16px; bottom:43px; font-size:7px; }
  .space-field__legend { left: 16px; right: 16px; bottom: 16px; max-width: none; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .space-field__card { transition: none; }
}
