/* NEON NULL v1.23.0 — Memory Card UI styles (worker B).
 * Prefix: nn-mcard-. Montserrat body, Orbitron headings. No emojis.
 */
.nn-mcard-root {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #d7f6ff;
  background: #0a0f16;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  padding: 16px;
  box-sizing: border-box;
  width: 100%;
}

.nn-mcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.nn-mcard-title {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: #00e5ff;
  margin: 0;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}

.nn-mcard-modes,
.nn-mcard-cardtabs {
  display: flex;
  gap: 8px;
}

.nn-mcard-mode,
.nn-mcard-cardtab {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  background: transparent;
  color: #7fb6c9;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 40px;
}

.nn-mcard-mode.nn-mcard-on,
.nn-mcard-cardtab.nn-mcard-on {
  color: #02141a;
  background: #00e5ff;
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}

.nn-mcard-cardtabs {
  margin-bottom: 16px;
}

.nn-mcard-body {
  min-height: 220px;
}

.nn-mcard-loading,
.nn-mcard-error {
  padding: 32px 12px;
  text-align: center;
  color: #7fb6c9;
  letter-spacing: 2px;
  font-size: 13px;
}

.nn-mcard-error {
  color: #ff5d6c;
  border: 1px solid rgba(255, 93, 108, 0.4);
  border-radius: 8px;
}

/* --- v1.24.11: compact status bar (replaces big visual card) — no scroll --- */
.nn-mcard-statusbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #0e1622;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #eafcff;
}
.nn-mcard-statusbar .nn-mcard-sb-label { color: #00e5ff; }
.nn-mcard-statusbar .nn-mcard-sb-sep { color: rgba(0, 229, 255, 0.35); }
.nn-mcard-statusbar .nn-mcard-sb-bytes { color: #7fb6c9; font-size: 11px; }

/* --- v1.24.11: save inspector (replaces scrolling list) --- */
.nn-mcard-inspector {
  background: #0e1622;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nn-mcard-inspect-empty {
  width: 100%;
  text-align: center;
  color: #55707e;
  letter-spacing: 2px;
  font-size: 12px;
}
.nn-mcard-inspect-main { flex: 1; min-width: 0; }
.nn-mcard-inspect-title {
  font-size: 14px;
  color: #eafcff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nn-mcard-inspect-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #7fb6c9;
}

/* --- big visual card (cards view) --- */
/* v1.24.11: removed — replaced by .nn-mcard-statusbar above (no-scroll rule) */
/* v1.24.11: visual chipcard removed — replaced by .nn-mcard-statusbar (no-scroll rule) */

/* --- PS1-style block grid --- */
.nn-mcard-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.nn-mcard-block {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  min-width: 0;
}

.nn-mcard-block.nn-mcard-empty {
  border: 1px solid rgba(127, 182, 201, 0.35);
  background: transparent;
}

.nn-mcard-block.nn-mcard-filled {
  border: 1px solid #00e5ff;
  background: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.65), inset 0 0 6px rgba(0, 229, 255, 0.4);
  cursor: pointer;
}

.nn-mcard-block.nn-mcard-hot {
  background: rgba(0, 229, 255, 0.75);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.95);
}

.nn-mcard-tip {
  min-height: 22px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  color: #00e5ff;
  margin-bottom: 12px;
}

/* v1.24.11: save list removed — replaced by .nn-mcard-inspector (no-scroll rule) */

.nn-mcard-empty {
  text-align: center;
  padding: 28px 12px;
  color: #55707e;
  letter-spacing: 4px;
  font-size: 14px;
  border: 1px dashed rgba(127, 182, 201, 0.3);
  border-radius: 8px;
}

.nn-mcard-kind {
  text-transform: uppercase;
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
}

.nn-mcard-del {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  background: transparent;
  color: #ff5d6c;
  border: 1px solid rgba(255, 93, 108, 0.5);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}

.nn-mcard-del.nn-mcard-armed {
  background: #ff5d6c;
  color: #1a0508;
  font-weight: 700;
}

/* --- storage view --- */
.nn-mcard-storage {
  margin-bottom: 16px;
}

.nn-mcard-storagerow {
  background: #0e1622;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
}

.nn-mcard-storagelabel {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: #00e5ff;
  margin-bottom: 8px;
}

.nn-mcard-storagebar {
  height: 14px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 7px;
  overflow: hidden;
  background: #081018;
  margin-bottom: 8px;
}

.nn-mcard-storagefill {
  height: 100%;
  background: linear-gradient(90deg, #00a8c0, #00e5ff);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
  transition: width 0.3s ease;
}

.nn-mcard-storagenum {
  font-size: 13px;
  color: #eafcff;
  letter-spacing: 1px;
}

.nn-mcard-storageblocks {
  font-size: 11px;
  color: #7fb6c9;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- footer / format --- */
.nn-mcard-foot {
  text-align: center;
  padding-top: 4px;
}

.nn-mcard-format {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  background: transparent;
  color: #ffb03a;
  border: 1px solid rgba(255, 176, 58, 0.55);
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  min-height: 44px;
}

.nn-mcard-format.nn-mcard-armed {
  background: #ffb03a;
  color: #1a1002;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 176, 58, 0.6);
}

/* v1.24.3: export/import transfer buttons */
/* v1.24.11: side-by-side, condensed (no-scroll rule) */
.nn-mcard-transfer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
}
.nn-mcard-transferrow {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
}
.nn-mcard-export,
.nn-mcard-import {
  flex: 1;
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  background: transparent;
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  min-height: 44px;
}
.nn-mcard-export:active,
.nn-mcard-import:active {
  background: rgba(0, 229, 255, 0.15);
}
.nn-mcard-export:disabled,
.nn-mcard-import:disabled {
  opacity: 0.45;
  cursor: default;
}
.nn-mcard-transferhint {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(160, 220, 235, 0.7);
  text-align: center;
}
.nn-mcard-transfermsg {
  min-height: 20px;
  font-size: 13px;
  color: #7dffb0;
  text-align: center;
}
.nn-mcard-transfermsg.nn-mcard-err {
  color: #ff7d9a;
}

.nn-mcard-formathint {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #7fb6c9;
}

@media (max-width: 480px) {
  .nn-mcard-grid {
    gap: 4px;
  }
  .nn-mcard-title {
    font-size: 16px;
  }
  .nn-mcard-inspector {
    flex-direction: column;
    align-items: stretch;
  }
  .nn-mcard-del {
    width: 100%;
  }
}

/* v1.24.28: save row — auto-save status (Card A) / BACK UP NOW (Card B) */
.nn-mcard-saverow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 4px; flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
}
.nn-mcard-backup {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 12px; letter-spacing: 2px;
  background: #0e2a1a; color: #7dffb0;
  border: 1px solid rgba(125, 255, 176, 0.55);
  border-radius: 8px; padding: 10px 20px; cursor: pointer;
  min-height: 44px;
}
.nn-mcard-backup:disabled { opacity: 0.5; cursor: default; }
.nn-mcard-savehint {
  width: 100%; text-align: center;
  font-size: 11px; letter-spacing: 1px; color: #7fb6c9;
}
.nn-mcard-savemsg {
  width: 100%; text-align: center;
  font-size: 12px; letter-spacing: 1px; color: #7dffb0; min-height: 16px;
}
.nn-mcard-savemsg.nn-mcard-err { color: #ff7d9a; }
.nn-mcard-auto { font-size: 11px; letter-spacing: 2px; color: #7fb6c9; }
.nn-mcard-autodot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3a4a5a; flex: 0 0 auto;
}
.nn-mcard-auto.on { color: #7dffb0; }
.nn-mcard-auto.on .nn-mcard-autodot {
  background: #7dffb0; box-shadow: 0 0 8px #7dffb0;
}
/* v1.24.28: LOAD button in the inspector (game saves only) */
.nn-mcard-inspect-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.nn-mcard-load {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 12px; letter-spacing: 2px;
  background: transparent; color: #7df9ff;
  border: 1px solid rgba(125, 249, 255, 0.55);
  border-radius: 8px; padding: 10px 16px; cursor: pointer;
  min-height: 44px; white-space: nowrap;
}
.nn-mcard-load.nn-mcard-armed {
  background: #7df9ff; color: #06222a; font-weight: 700;
  box-shadow: 0 0 16px rgba(125, 249, 255, 0.6);
  white-space: normal; max-width: 200px;
}
@media (max-width: 480px) {
  .nn-mcard-inspect-btns { width: 100%; }
  .nn-mcard-inspect-btns .nn-mcard-load,
  .nn-mcard-inspect-btns .nn-mcard-del { flex: 1 1 auto; }
}
