/* ============================================================
   THE GILDED ORRERY — the sighting glass (⌘K / "/")
   Type three letters, take the shot.
   ============================================================ */

.sighting {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: start center;
  padding: clamp(48px, 12vh, 140px) 18px 24px;
}
.sighting[hidden] { display: none; }

.sighting-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, 0.78);
  animation: sight-in 0.18s var(--ease) both;
}

.sighting-glass {
  position: relative;
  width: min(620px, 100%);
  max-height: min(66vh, 560px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, #17150f 0%, #0d0d0e 62%, #0a0b0c 100%);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-plate);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: sight-rise 0.24s var(--ease) both;
}

@keyframes sight-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sight-rise {
  from { opacity: 0; transform: translateY(-10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

.sighting-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.sighting-mark {
  font-size: 16px;
  line-height: 1;
  color: var(--brass);
}
.sighting-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.04em;
}
.sighting-input::placeholder { color: var(--ash-dim); }
.sighting-input:focus { outline: none; }
.sighting-esc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ash-dim);
}

.sighting-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
}

.sighting-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: var(--r-chip);
  border-left: 2px solid transparent;
  cursor: pointer;
}
.sighting-row:hover { background: rgba(198, 151, 73, 0.06); }
.sighting-row.is-on {
  background: rgba(198, 151, 73, 0.11);
  border-left-color: var(--brass);
}
.sighting-row-id {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--brass);
}
.sighting-row-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--ivory);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sighting-row-tags { display: flex; gap: 4px; }
.sighting-row-ckt { font-size: 10px; letter-spacing: 0.14em; color: var(--ash-dim); }

.sighting-empty {
  list-style: none;
  padding: 30px 12px;
  text-align: center;
  letter-spacing: 0.08em;
}

.sighting-foot {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid var(--rule-faint);
  background: rgba(6, 6, 7, 0.6);
  font-size: 10px;
}
.sighting-foot .readout { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 560px) {
  .sighting-row { grid-template-columns: auto 1fr; }
  .sighting-row-tags, .sighting-row-ckt { display: none; }
  .sighting-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sighting-scrim, .sighting-glass { animation: none; }
}
