/* ---- 🗂️ THE EVIDENCE LOCKER (the NPD case board, js/arcade.js openLocker) ----
   Rides on .modal-overlay/.active from account.css so the hall's modalOpen()
   check sees it and hands over the keyboard. Everything below is the FOLDER:
   department green on manila, exhibits as filed paper, and a status line that
   says OPEN because canon says it will always say OPEN. */

.npd-locker .npd-panel {
  width: 100%;
  max-width: 54rem;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  background: #14100a;
  border: 1px solid rgba(57, 255, 122, 0.35);
  border-radius: 1rem;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9), inset 0 0 90px rgba(57, 255, 122, 0.04);
  font-family: Consolas, 'Courier New', monospace;
  color: #e8e2cc;
  animation: modalpop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  overflow: hidden;
}

.npd-locker .npd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem 0.8rem;
  background: linear-gradient(180deg, #12301f, #0d2016);
  border-bottom: 1px solid rgba(57, 255, 122, 0.25);
}
.npd-locker .npd-title { display: flex; flex-direction: column; gap: 0.22rem; }
.npd-locker .npd-no {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(191, 240, 207, 0.7);
}
.npd-locker .npd-name {
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #bff0cf;
  text-shadow: 0 0 22px rgba(57, 255, 122, 0.35);
}
.npd-locker .npd-close {
  flex: none;
  background: transparent;
  border: 1px solid rgba(191, 240, 207, 0.3);
  color: #bff0cf;
  border-radius: 0.5rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}
.npd-locker .npd-close:hover { background: rgba(57, 255, 122, 0.15); }

.npd-locker .npd-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  background: rgba(232, 65, 44, 0.08);
  border-bottom: 1px solid rgba(232, 65, 44, 0.25);
}
.npd-locker .npd-open { color: #ff7a68; font-weight: 900; }
.npd-locker .npd-count { color: rgba(232, 226, 204, 0.75); }
.npd-locker .npd-count b { color: #ffd23a; font-size: 0.95rem; }

.npd-locker .npd-grid {
  overflow-y: auto;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0.5rem;
  /* the cork the exhibits are pinned to */
  background:
    radial-gradient(circle at 20% 30%, rgba(107, 74, 36, 0.35), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(107, 74, 36, 0.25), transparent 55%),
    #100c07;
}

.npd-locker .npd-ex {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(232, 226, 204, 0.12);
  background: rgba(232, 226, 204, 0.04);
}
.npd-locker .npd-ex.filed {
  border-color: rgba(57, 255, 122, 0.35);
  background: rgba(57, 255, 122, 0.06);
}
.npd-locker .npd-ex.open { opacity: 0.72; }
.npd-locker .npd-ex-i { font-size: 1.15rem; line-height: 1.2; }
.npd-locker .npd-ex-b { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.npd-locker .npd-ex-t {
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #f4f0e6;
}
.npd-locker .npd-ex-src {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(191, 240, 207, 0.55);
}
.npd-locker .npd-ex-n {
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(232, 226, 204, 0.8);
}
.npd-locker .npd-ex.open .npd-ex-n { color: rgba(255, 210, 58, 0.8); font-style: italic; }
.npd-locker .npd-ex-s {
  flex: none;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 0.16rem 0.35rem;
  border-radius: 0.3rem;
}
.npd-locker .npd-ex.filed .npd-ex-s { color: #0d2016; background: #39ff7a; }
.npd-locker .npd-ex.open .npd-ex-s { color: #ffd23a; border: 1px solid rgba(255, 210, 58, 0.5); }

.npd-locker .npd-foot {
  padding: 0.75rem 1.2rem 0.95rem;
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(232, 226, 204, 0.78);
  border-top: 1px solid rgba(57, 255, 122, 0.2);
  background: #0d2016;
}
.npd-locker .npd-foot b { color: #bff0cf; letter-spacing: 0.08em; }
.npd-locker .npd-foot i { color: rgba(191, 240, 207, 0.6); }

@media (max-width: 30rem) {
  .npd-locker .npd-grid { grid-template-columns: 1fr; padding: 0.55rem; }
  .npd-locker .npd-head { padding: 0.85rem 0.9rem 0.65rem; }
}
